Date created: Thursday, October 29, 2015 1:37:18 PM. Last modified: Friday, September 15, 2017 10:38:27 AM
PingyThingy
PingyThingy is a single PHP page that uses fping to periodically ping hosts and record when the change between an up or down state. It's not a delay measuring tool. It simply tracks a hosts up or down (reachable or unreachable) state.
I was developed with an automatic provisioning system; add the IPs of the devices to PingyThingy that will be provisioned each night by the automatic provisioning system then check back in the morning to see which devices have completed provisioning and what time they came online.
Download. The .sql file contains the MySQL schema. Then just call theh pingythingy.php via a cron entry:
# PingyThingy fping poller */5 * * * * www-data /usr/bin/php -f /usr/share/nginx/pingythingy/public_html/index.php fping > /dev/null 2>&1 # Running the script manually gives the following output: user@testhost(public_html)$sudo -u www-data /usr/bin/php -f ./index.php fping Host 212.58.244.69 is alive Host 10.224.0.142 is alive Host 8.8.8.8 is unavailable
Example adding three new hosts:
After a period of time the hosts come online and the poller updates the hosts to reachable on the next run:
Previous page: Process Control - Fork Chaser
Next page: JOINs