Network-Weathermap Nagios Hover

Again a nice little php script to host on your webserver running Nagios Core and Network-Weathermap. The script shows your nagios host state when hovering over a nagios node on a weathermap. And should look something like this.

Use & Configuration is very simple, if there is anything you need, let me know!

Inside a Network Weathermap

Just the overlibgraph

The weathermap configuration inside the header of the php file
``` // weathermaphover.php // // Script creates an image/png using GD showing the nagios host state. // Very useful in network-weathermap! // It fetches the info from status.dat // // +-------------------------------------------------------------------------+ // | WeathermapHover for Nagios v0.7 | // | by Jan Jaap van Santen | // | github: janjaaps | // | email: github@lebber.net | // | email: janjaap@scict.nl | // +-------------------------------------------------------------------------+ // | Usage is very simple using the OVERLIBGRAPH on a NODE | // | in the weathermap config. | // | And with just a monitored nagios host as input: | // +-------------------------------------------------------------------------+ // | NODE | // | LABEL | // | OVERLIBGRAPH http://srvnagios/nagios/weathermaphover.php?host= | // +-------------------------------------------------------------------------+ // | The only setting needed to be made in this file is. | // | Set this to your status.dat location: | // | $statusFile = "/var/ramdisk/status.dat"; | // | $statusFile = "/opt/nagios/var/status.dat"; | // +-------------------------------------------------------------------------+ ```
##### Code [Github - weathermaphover.php](https://github.com/janjaaps/nagios-weathermap/blob/master/weathermaphover.php) [^n] notes & links [^n]: Nagios Core https://www.nagios.org/projects/nagios-core/ [^n]: Network-Weathermap http://network-weathermap.com [^n]: the bits https://github.com/janjaaps/nagios-weathermap/blob/master/weathermaphover.php
SHARE THIS POST

Jan Jaap van Santen

 the Netherlands    http://bit.ly/1Zu0KuL

 IT Specialist/Architect Started around the age of 10, which gives me over 20 years of IT experience. I play the drums and automate the house with a bunch of Pi's.