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


Remember Me

Graphvis visualisation of Nagios Config

Current Version
Last Release Date
Compatible With
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
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.

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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.