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)
675 views Asked by Sinai At
1
There are 1 answers
Related Questions in JSON
- Handling both JSON and form values in POST request body with unknown values in Golang
- JSON Body is Not Passing Certain Strings
- Custom rewriter for json
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- I dont understand what to do with: System.Text.Json.JsonException: 'The JSON value could not be converted to System.Collections.Generic.IEnumerable`1
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Dynamic Nested Multi-Dimensional Arrays in Rust
- Creating bar chart in FastAPI
- How to encode ttsJson data?
- Trying to get the id of the last element in my json file through an api
- How to give index id to my uploaded json file in FastAPI?
- JQ JSON - Values to Array
- Spring boot JSON parse error: Unexpected character error
- convert csv file with json data inside to a column, rows table in 2nd csv file
- Sigma.JS custom rendering
Related Questions in PING
- How can we make an environment specific Token-based authorization using Ping Token?
- Can't ping to 8.8.8.8 and google.com in beaglebone black
- how calculate: mean, standard deviation , coefficient for each ip ping , traceroute
- How to "make" a variable that contains another variable value?
- How to run automatically a command in the CMD after starting it as a process (using C#)
- Ping from a public EC2 instance
- how to perform a Ping flood attack / ICMP flood attack demonstration?
- Not able to connect to an IP from databricks notebook in azure
- Cannot ping server 1 from pc 1 in packet tracer file by setting default route on all 3 routers connected with serial DTE cables
- ModuleNotFoundError, while running a python script as root user in Ubuntu
- Flutter app unable to resolve hostname for ping operation
- Why does my genymotion emulator show 127.0.0.1:6555 on its top window border, rather than a real IP address?
- OIDC enabled web apps prompting for re-authentication although logged in first application initially
- Python library to send pings that doesn't require elevated permissions?
- Resolving NoneType.__format__ Error in a Python UDP Ping Function
Related Questions in ZABBIX
- Trying to get net.if.in and net.if.out values with zabbix api python
- Zabbix parsing macros value
- Ansible: working with loops within a task not on a task
- Goggle Apps Script integration with Zabbix
- Zabbix Custom Widget - Time selector
- Zabbix appliance 6.2 - Can't login in to VM
- pyzabbix ZabbixAPI creating http agent item - preprocessing params
- Zabbix shows me multiple alerts for the same problem
- Replication postgresql database error connection between master to standby
- Mainframe monitoring using Zabbix
- Item in zabbix does not display data
- Grafana. Can you split one-field one-row table with json value into multiple fields and rows in Grafana table dashboard?
- ansible zabbix module - loop though templates
- zabbix triger does not set the trigger to the ok state when using no data
- Zabbix create item using item prototype
Related Questions in ICMP
- TimeStamp on ICMP on Scapy (Python)
- Coding Linux's traceroute in C#?
- ICMP Types and ID
- Problems with forging ICMP "Fragmentation needed, but DF bit set"
- Python library to send pings that doesn't require elevated permissions?
- Why Flutter Socket.connect does not work if network is changed after app startup
- Troubleshooting network connectivity issues in a local network environment after adding dummy interface to the local subnet
- Issue ICMP checksum XDP
- Only receive 0 length ICMP packets from icmp.Packetconn
- golang icmp ping issue using goroutines - getting duplicates
- Disable the ping in ubuntu docker container
- How to validate the checksum of an ICMP echo packet?
- UDP socket set DontFragment (DF) field in outgoing packets - will it catch the ICMP "packet too large" respnses?
- Get data from ICMP package
- C implementation of ICMP echo message with raw sockets
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?
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)
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: