Customizing Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lci
Posts: 2
Joined: Thu Apr 14, 2011 3:52 am

Customizing Nagios

Post 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
Attachments
Nagios_Cacti.png
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Customizing Nagios

Post 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.
lci
Posts: 2
Joined: Thu Apr 14, 2011 3:52 am

Re: Customizing Nagios

Post by lci »

Thank you mguthrie,

This is what I was looking for!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Customizing Nagios

Post by mguthrie »

Awesome, glad it's working for you!
Locked