Monthly Archive for June, 2011

Nagios XI Graph Explorer Component Released

My brother (a fellow programmer) once told me, “the solution is easy once you know what it is.”  That’s been the case for the finishing touches needed to finally release a component that I’ve been excited about for a long time: The Nagios XI Graph Explorer.  This component utilizes a javascript visualization library and allows users to easily zoom graphs, select custom time frames, and even stack time periods on top of each other to compare performance from one time period to the next.  If you like data visualization, you’ll love this tool.  Currently this download is for current Nagios XI customers only and can be downloaded from the Nagios XI Customer Downloads page, and I recommend using this with Firefox for maximum reliability.  Special thanks to Nicholas Scott for accidentally pointing out the solution to the problem that’s been in front of my face the whole time ; )


Documentation: Writing Custom Wizards

We’ve had some requests in past months about developer documentation for writing custom Configuration Wizards for Nagios XI.  Many admins have a large amount of devices of a specific type that they regularly need to add to their monitoring environment.  So for those needing to write their own wizard, and don’t mind getting their hands dirty with PHP development, this document and example code illustrate how to write a monitoring wizard while maintaining the integrity of the Nagios XI framework.  The example wizard utilizes a weather alerts check plugin written by Tony Yarusso.  You can find the document on the Nagios Library.


Check for XI updates with a plugin

Nagios XI has always had the ability to let you know when updates to the software are available, displaying a message under the Admin area that looks like this:

This is great for just checking up on from time to time, but for most system administrators there are too many applications to be manually checking for updates, and since the whole point of Nagios is to notify you when something needs attention, it would seem far more useful to set this up in a way that would actively let you know when an update was available.

The solution for this was to re-implement the software update check as a Nagios check plugin, separate from the page code.  This means that you can now set up a Nagios service to watch for software updates to XI, and get alerts when a new version comes out just like you would for anything else that needed attention on your network, saving you time and making it more likely that you will actually remember to apply updates when they become available.  With that configuration, you will also have a service screen that looks like this:

While not yet present in XI by default, you can easily add this functionality to your existing installations.  Simply download the plugin here to your plugins directory (/usr/local/nagios/libexec/), make it executable (`chmod +x check_xi_updates`), and create a service for it.  You can find more information about those steps in the documentation and from a self-paced training video (customers only).

Helping MySQL Move Out And Find Its Own Server

Anybody keeping tabs on the performance of their NagiosXI server knows that mysqld, httpd and nagios all play an intense game of king-of-the-CPU.   The cool thing about NagiosXI is that it comes with NDOUtils out of the box, which is a great tool for offloading the MySQL server, which is great if you need to stack on more checks.  If you run a NagiosXI server that is completely loaded down and have another server that could host a MySQL server for that NagiosXI server, this  PDF would definitely be worth a read. The PDF attached is a step-by-step guide to migrate your existing MySQL server to a remote MySQL server and is definitely an interesting look at just how exstensible NagiosXI is.

Offloading MySQL to a Remote Server