NagiosGrapher: How do the links work?

Arno Lehmann al at its-lehmann.de
Thu Jan 26 00:44:25 CET 2006


Hi,

On 1/25/2006 11:42 PM, Hugo van der Kooij wrote:
> Hi,
> 
> I am trying to get NagiosGrapher up and running. I get some graphs but how
> can one see the graphs unless you explicitly go to /cgi-bin/graphs.cgi ?

Nagiosgrapher installs serviceextinfo definitions automatically. It's 
some time ag that I set it up, but let's see...

>         serviceext_type         MULTIPLE
>         serviceextinfo          /etc/nagios2/serviceextinfo.cfg
>         serviceext_path         /etc/nagios2/serviceext
>         url                     /nagios2/cgi-bin/graphs.cgi

is from my ngraph.ncfg. serviceext_type MULTIPLE tells nagiosgrapher to 
create a file for each host in the directory given in serviceext_path.

> The sample config show a part like:
> icon_image_tag          dot.gif' border="0"></a><a target="_blank" href="graphs.cgi?###URL###" border="0"><img src="/nagios/images/logos/graph.png" border="0"logos/dot.gif
> 
> But however I twist and turn I see no way anything good can come from
> that line. (I suppose the normal result from dot.gif would be a webpage
> with a <img src="dot.gif"> bit included.

I couldn't, too, but it works nonetheless. :-)

> So I am still puzzled in the way the link to the graphs should become part
> of the normal nagios config.

You've got to set up nagios to read the file(s) nagiosgrapher creates:
In my nagios.cfg I have:

> # The following line is for nagios_grapher. This should be the only place where
> # service extended information is stored!
> cfg_dir=/etc/nagios2/serviceext

That information is only read when nagios starts or when it's reloading 
the configuration after a SIGHUP.

Afterwards, you should see icons for the graphs nagiosgrapher creates, 
and they should link to the right cgis. Here it works.

I never tried it, but setting up serviceextinfo for nagiosgrapher and 
manually or by other tools might become painful.

> (In fact I am puzzled by much more but let's take it one step at the
> time.)

Let nagiosgrapher write a detailed log and observe what happens in 
there. tail -f is just the tool for that...

> Hugo.
> 

Arno

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list