We’ve created a map which visualizes Nagios statii on a map. The idea was
born a month ago, and it was completed after about three weeks.
I store a code into a MySQL database table:
Because the machine with the database table is in our DMZ, I need to access the
statii of the individual hosts via HTTP. A simple PHP script does that for me.
A test with
php -f blinken.php should output a single line of ones and zeroes
depending on the status column of the database table.
A simple shell script will retrieve the statii from our web server and pass
those as arguments to the blinken program.
The leds on the map should light accordingly. (With a bit more time, and some
more inclination, I’d have used curl embedded in the C program to retrieve the
The blinken program is quite simple: