I want to use ICMPPING in zabbix as a simple check. I know it uses fping. But I want to override the fping program to do my desired work. fping utility can give me the result of an ICMP request from the system that runs it. I mean it investigates the availability of an IP address from just one server. But I want to use an API which is performed by the use of CURL that returns the results of availability of an IP address from multiple servers. I wrote the program with python and it is working well. But I don't know how to send the result to zabbix! By now it simply produce 1 if the IP is online and 0 if it is offline. I think I should submit the result in a JSON like format, but I do not know the right syntax!! I formerly wrote a script for discovering LVM partitions and submit the result with the following JSON synax:
{"data":[{"{#MDNAME}":"md1"},{"{#MDNAME}":"md127"},{"{#MDNAME}":"md2"}]}
But I don't know the correct json syntax for the icmpping!
Any help is appreciated
zabbix: fping failed: simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
673 Views Asked by Sinai At
1
There are 1 best solutions below
Related Questions in JSON
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in PING
- Mule ESB & PING Identity Integration
- How to get output of ping command without Ping statistics?
- running multiple threads with continous value returns (ping program)
- How Can I ping or create a scoket connection with my friend?
- WINDOWS PROMPT Getting IP of webpages from file
- Getting Respond Time from Ping Command
- Ping Azure VM in same subnet using VM name
- Temporary network outage when Symantec Endpoint Network protection is enabled
- Pinging multiple times using InetAddress makes GUI unresponsive
- Ping betwwen OF switch and Non-OF switch
- Shell Script: Speed of transfer of a hop using command Ping
- How to modify output of ping command in terminal using shell?
- Memory dump using Ping .net
- Can not ping google cloud sql
- Grab IP addresses only by pinging list of server names using Batch
Related Questions in ZABBIX
- Zabbix error expression vfs.file.regexp
- Zabbix external checks cannot be executed due to SELinux
- PDF report in zabbix 2.2.9
- Zabbix proxy - Received empty response from Zabbix Agent
- Zabbix dashboard error after a successful login in dashboard
- IIS Monitoring Through Zabbix
- How to increase length of remote command script or how to send file from server to agent for zabbix
- How get zabbix enabled host,Through the use of API
- error during zabbix 3.2 compile
- zabbix: fping failed: simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Zabbix - Set a group on top of System Status, without renaming
- same trigger alert stop in zabbix
- Zabbix userparameter with multiple values doesn't work
- zabbix.conf redirect to another port
- Zabbix psql active monitoring is not supported
Related Questions in ICMP
- Sending icmp raw sockets
- Boost raw sockets
- Setting ICMP match with POX controller
- zabbix: fping failed: simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Creating ICMP fragmentation needed packet in Scapy
- Icmp subnet address request
- Regarding ICMP "Fragmentation needed, DF bit set" or ICMP packet too big message
- How to get the timestamp since midnight UT
- How to build forged ICMP "Destination Unreachable" Type 3 Code 4 packet
- How can a windows app handle ICMP requests?
- ICMP pinger application in Python - error: operation not permitted?
- Decoding ARP packets using jnetpcap library
- Long-lived ping program after resuming from suspend not receive pong
- Intellisense: error C2440: '=' : cannot convert from 'unsigned long (__stdcall *)(const char *)' to 'IPAddr'
- Calculating ICMP packet checksum
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It does not use JSON, Zabbix just parses the fping output - you would have to emulate that.
For example, fping output with the default settings and 3 packets sent looks like this: