Home Directory Patches Nagios Core Hover Popup for Host Groups

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Hover Popup for Host Groups

Current Version
0.1
Last Release Date
2012-05-15
Compatible With
  • Nagios 3.x
Owner
Website
License
Other
Hits
66211
Files:
FileDescription
nagios-3.4.1-hover.patchnagios-3.4.1-hover.patch
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Mouseovering on a Critical or Warning element in the Host Groups view creates a small popup where the errors are shown.
We've been using this internally for a while, really handy in our opinion. Seeing that 3.4.1 (we updated straight from 3.3.1) already added JavaScript stuff and the status.c has a lot of changes between versions, I'm now trying to push this patch upstream as it is a pain to manually edit status.c every update :-)

The patch is quite unintrusive in status.c; three printf's added, two printf's modified, one printf moved around a bit and one function has an extra parameter.
The JS-part I kept as simple as possible according to KISS-principles. This means it won't work on every browser. Works in our FF and Chrome. Feel free to go absolutely nuts with this part of the code.
The addition to cgiutils.h should be trivial to understand.

To apply the patch you will need Nagios Core 3.4.1. This is how I did it from the ground up:

gunzip nagios-3.4.1.tar.gz
tar -xvvf nagios-3.4.1.tar
cd nagios
patch -p0 < /where/the/patch/is/nagios-3.4.1-hover.patch
./configure --with-your --favorite=options, --your-mileage=may_vary
make all
make install

And it was running smoothly. Hope it makes your life easier like it did for us.