Page 1 of 1

Customizing Nagios

Posted: Thu Apr 14, 2011 4:09 am
by lci
Hi,

I use The Nagios Core, version 3.2.3 to monitor status of services running at my servers.
Few days ago I installed Cacti to extend my monitoring possibilities.

Now, I would like to connect these two services to make my administrative tasks easier, and add a little cacti logo under the servers name at the "Service Status Details For All Hosts" section, which will be a links to Cacti with graphs connected with proper server (please look at the attachment below).

I know I can add this icon using CSS style sheet, but how to add link like http://cacti. domain.com/graph_view.php?id=SERVER_ID, where the SERVER_ID is server name?

Is there any simple way to do this?

Thank you in advance

Re: Customizing Nagios

Posted: Tue Apr 19, 2011 10:39 am
by mguthrie
There's a directive in the config files called "action_url" that you can put something to the effect of:
http://cacti. domain.com/graph_view.php?id=$HOSTNAME$
The link should show up in the host details.

Re: Customizing Nagios

Posted: Wed Apr 20, 2011 1:56 am
by lci
Thank you mguthrie,

This is what I was looking for!

Re: Customizing Nagios

Posted: Thu Apr 21, 2011 9:39 am
by mguthrie
Awesome, glad it's working for you!