Date created: 10/29/15 13:37:18. Last modified: 09/15/17 10:38:27

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:
[email protected](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: