Home Directory Utilities Graphvis visualisation of Nagios Config

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

Graphvis visualisation of Nagios Config

Current Version
1
Last Release Date
2012-07-13
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
License
GPL
Hits
65524
Files:
FileDescription
nagparseThe nagios file parser - produces a Data::Dumper dump.
graphitTurns the output of nagparse into GraphVis graph input language.
explorenagiosNo frills CGI interface to the above utilities.
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!
Graphvis visualisation of complex Nagios configs.
I have written a couple of utilities one to walk a nagios config tree and turn it into a perl hash (called nagparse)and another to use that hash converting the tree into a graphvis directed graph (called graphit). These are then brought together with a CGI program called explorenagios that lets you select what parts of the config to graph. If you have a non trivial config then showing it ALL in one graph is not fun!

You can use the two component programs on the command line too - and feed the output into dot (it has been optomised to make nice dot graphs) or one of the other engines like neato if you want to do some hacking of the output options.

It is now useful enough to be worth sharing. Not prefect yet but useful. Surprisingly fast.

If you use the explorenagios with the debug flag checked the resulting output can be used with the Twiki wiki GraphVis plugin too.

If you are working on a large and complex configuration being able to see large groups of hosts and how they link up to services etc on a graph is a great fault finding aid. You get to spot the odd ones out easily.