Using fping to get ping times in Python

I have a list of IP's (Generated from a traceroute in Python Scapy) which I need to send 3 ping's to measure the average time to each hop. My first methord was building a ICMP request using...

how to icmp ping thousands of IP addresses simultaneously every second?

I'm looking for solution, how to be able to ping some 5000 (up to 10000) IP addresses on a local network each 1 second and immediatelly, when any icmp packet timeouts, it will write output to a...

Install error: ftheader.h: No such file or directory

When I am trying to build matplotlib-1.3.1, I am getting the below freetype header errors. Probably it is not finding the ftheader.h. Any idea on how to solve this problem? NOTE: I just installed...

Syntax error: "fi" unexpected (expecting "then") in bash script

I try to do the script: #!/bin/bash IP='192.168.1.1' fping -c1 -t300 $IP 2>/dev/null 1>/dev/null if [ "$?" = 0 ] then echo "Host found" else echo "Host not found" fi and i turn...

Sort on the last octet of an IP address in a Python list

Here's a bit of a brain boggler (for me at least). I'm utilizing a simple Python script to return a list of "up" hosts using fping. I'm storing each "up" host in a Python list, however the...

How to ping from Zabbix agent?

Is it possible to ping from Zabbix agent and pass that data into Zabbix server? I would like to be able to get response time from the agent. I read that it is possible by using fping, would be...

zabbix: fping failed: simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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...

Bash ping two hosts and execute command based on status

I need a script that will ping two hosts and execute a command depending on their status. i.e #!/bin/bash HOSTS="1.1.1.1 2.2.2.2" for myHost in $HOSTS do fping $myHost > /tmp/ping.log if [...

fping hosts in file and return down ips

I want to use fping to ping multiple ips contained in a file and output the failed ips into a file i.e. hosts.txt 8.8.8.8 8.8.4.4 1.1.1.1 ping.sh #!/bin/bash HOSTS="/tmp/hosts.txt" fping -q -c 2...

Why does Buildozer show `# Aidl not found, please install it.` even after I installed it?

I have installed build-essential, libstdc++6,and, aidl itself: sudo apt-get install aidl Reading package lists... Done Building dependency tree Reading state information... Done The...

error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method)

I wrote one java program to periodically monitor the status of the devices using fping protocol. It will execute the fping command for every 5 mins. I got an above exception sometimes only. We are...

Cannot execute binary file - Zabbix external scripts on CentOS

Problem: We use Zabbix as monitoring system. In addition to using its built in items, we also use something called external scripts feature (this), where custom scripts can be written and called...

subprocess.Popen getting through error when run from cron

I have got the below script, this works fine when i run this from command line however when i put the same script to execute through cron it throws me the error. My code import subprocess import...

fping multiple hosts in parallel

I want to use fping to ping a number of hosts in parellel and if one is down write it to a file. The below is working but it's running once for each ip how can I eliminate this or have if rcv <...

Output manipulation for stderr

I have a sets of given hosts. Some of them are linux, other Windows. Linux systems follow the "sys0123" nomenclature Windows the "wsys0123" one With fping, how can I have the stdrr to re-ping the...

Observium - Graphs shows no data (nan) or empty graphs

I have problem with Observium. On CentOS 7 I installed Observium. On this server i also have DirectAdmin and Wordpress. When I login to webpanel Observium, Graphs shows no data (nan). Graphs no...

AttributeError: 'NoneType' object has no attribute 'group' in fping output

Sometimes i get this error. This is a simple ping script which parses fping output. When lots of devices get unreachable - sometimes i get this error: massping.service - MassPing Service ...

Using AWK and Fping to capture out put to variable in Bash

I am trying to save the outputs of fping in to a variable in Bash, this should be easy but I just cant get it to work. I have tried various methods, tried using things like AWK and CUT on the...

Running script using CRON gives Syntax error

I have written a simple script to find the latency acorss the network (script at end of post) When I run this script from the CLI (as root) using ./latencytest it runs fine and I get an output...

Extract average time using fping

I want to extract the avg time using fping. fping -q -b 12 -c 3 localhost 192.168.0.20 192.168.0.1 192.168.0.18 192.168.0.22 localhost : xmt/rcv/%loss = 3/3/0%, min/avg/max =...

saving subprocess output in a variable

I am using fping program to get network latencies of a list of hosts. Its a shell program but I want to use it in my python script and save the output in some database. I am using...

running Puppeteer headfull (headless false) inside docker

I need to launch Puppeteer headfull (headless false) inside docker with Chrome and I get the same error: "can't launch chrome". I install all dependencies but it's falls anytime Error: Failed to...

Difficult implementing ping/latency functionality on unpreviliged host machine with Python

I made a webapp (python/django) which pings different servers and returns ping values. here's the Link. It has a pingserver(ip,sev) function that uses the os/system fping(can be used with...

Zabbix Performance tunning (with Proxies)

We setup a distributed monitoring cluster with one Zabbix (3.4.7) Server and 8 Proxies: Zabbix: OS: Debian Stretch CPU: 16*2.27GHz RAM: 48GB Disk: Raid1 10K...

Bash - Show dialog infobox while operation

I'm scripting in bash for the first time. I'll crating a menu with dialog and add some function. I like to show a --infobox during a operation is running, so the user see something is...

SoundPool in Service not loading

I have a SoundPool that I want to stay loaded in different fragments. So I load it with an intent for a service in my starting activities onCreate, and then try to play it with other intents in...

fping using IP list in python3

I am new to python and I am trying to scan multiple IPs with fping. I have large number of server to monitor for statistics and I could write the following code that works for 2 hosts: ...

Read everything from child_process.spawn's stderr in nodejs

Trying to run fping from nodejs via child_process.spawn() is and capturing output via cp.stderr.on('data') sometimes results in incomplete data in the buffer. Here's my sample snippet: const...

How to reconnect to TCP server after network goes down and comes back up again?

I have a raspberry pi that connects to a TCP server and sends some data every couple of seconds, I want to be able to handle all kind of failures and disconnects, so at the moment I am trying a...

Starting Zabbix Server within docker replaces strings with nothing in config file →

→ or totally ignored strings like name of new DB for testing purposes. Firstly tries to add something about ~250 to 250 already added hosts and Z-server shutted down. I've restarted it and...