Python calls the zabbix api

Prerequisite preparation: 1. Use python requests module 2. Learn about json 3. The specific call of ZABBIX API is recommended to browse the official website first First code: import requests,json # #The url must be correct. Change the IP address to the one of your own zabbix server zbx_url = "http://192.168.60.130:3080/zabbix/api_jsonrpc.php" ...

Posted on Fri, 06 Dec 2019 05:22:43 -0800 by harvey

JWT learning summary

The full name of JWT is JSON web tokens, which is a set of specifications to deal with Http's stateless and plaintext transfer request, to ensure the security of the request. We usually use it to transfer the user's identity information between the server and the client to maintain the state. 1. What are its advantages over the common session+c ...

Posted on Fri, 06 Dec 2019 05:03:21 -0800 by garek007

Summary of simple use of jsTree tree tree structure display

I. generate tree data When downloading js resources on the official website, demo is already included in it. The most basic copy and paste is good. Talk about some problems 1. Dynamic generation tree of background data If it is a string of Json structure, it needs to be transferred to data var jsonData=JSON.parse('${ujson} ...

Posted on Thu, 05 Dec 2019 20:00:47 -0800 by Loki_d20

What does AFNetworking look like

stay What does AFNetworking look like The main classes and their structures involved in AFN are briefly introduced in, and then a simple POST request is used to explore how to implement it internally. I. environment construction Server configuration In this case, I use Apache, which comes with iMac, and turn on PHP support for it. Write the ...

Posted on Thu, 05 Dec 2019 18:14:44 -0800 by zoidberg

Ognl Usage Example Manual

The last blog post introduced the basic syntax of ongl, and we'll move on to the actual usage section, where we'll combine some actual case s to demonstrate just how far ognl can support Before reading this article, it is strongly recommended that you familiarize yourself with what ognl is and its grammatical features, reduce reading disabilit ...

Posted on Thu, 05 Dec 2019 17:06:20 -0800 by forsooth

Some problems encountered in the use of Docker

Common mistakes error1 push Error in mirroring to local warehouse Error: Invalid registry endpoint https://10.10.3.67:5000/v2/: Get https://10.10.3.67:5000/v2/_ping: dial tcp 10.10.3.67:5000: connection refused. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 10.10.3.67:500 ...

Posted on Thu, 05 Dec 2019 06:13:47 -0800 by sathyan

ElasticSearch data type creation error resolution 1

In actual work, there are often requests with incorrect es data types. Es does not support type modification, for example: "name": { "type": "keyword" } name does not support fuzzy search. You want to modify it to "name": { "term_vector": "with_positions_offsets", "type": "text", "fields": { "pinyin_full": ...

Posted on Thu, 05 Dec 2019 05:40:12 -0800 by texhead

How to trigger and process HTTP requests using java.net.URLConnection

Use is often asked here java.net.URLConnection Situation, while Oracle Tutorial This is too concise. This tutorial basically shows you how to trigger a GET request and read the response.It has no place to explain how to use it to perform POST requests, set request headers, read response headers, process cookie s, submit HTML forms, upload f ...

Posted on Thu, 05 Dec 2019 03:35:42 -0800 by drax

JS: array disorder

Array scrambling As the name implies, array disorder is to disorder the order of the values stored in the array. Fisher–Yates shuffle Famous shuffle algorithm , the principle is to traverse array elements and exchange the current element with one of the remaining elements randomly extracted. The following table traverses the elements from the ...

Posted on Thu, 05 Dec 2019 02:29:22 -0800 by Gaia

Python crawler tutorial 8-100 hummingbird Web picture crawling 3

Wordy The capacity of the previous few days is quite large. Today I write a relatively simple one. It's hummingbird. I still use aiohttp. I hope you like it Crawling the page https://tu.fengniao.com/15/ this tutorial is still based on the purpose of learning. Why choose hummingbirds? There's no way. I chose them blindly. After a familiar ope ...

Posted on Wed, 04 Dec 2019 23:33:38 -0800 by dcole