Ongoing MDK-nagios-apan saga - graph.png

stefmit stefmit at comcast.net
Thu Jun 12 21:44:30 CEST 2003


I hate packagers :) On my quest for resolving the placement of files as 
delivered by MDK9.1 vs. where the docs and default are supposed to be 
(remember the long posting I had a few days ago?), I pretty much nailed down 
everything, except for the placement of the icon for apan (net-usage 
service). As someone mentioned here, already, the external file usage with 
xedtemplate in cgi.cfg was the working method (vs. the serviceextinfo 
directly in cgi.cfg, as I initially attempted). That external file has now 
the entry:

define serviceextinfo{
        host_name               my-device
        service_description     Net-usage
        notes_url               
http://localhost/nagios/cgi-bin/apan.cgi?host=my-device&service=Net-usage
        icon_image              /usr/share/nagios/images/graph.png
        icon_image_alt          View graphs
}

and the graphs show up fine, when "clicking" on the non-existent icon (just an 
empty frame, pointing to the notes_url).

The problem is that the picture (graph.png) still doesn't show up - but this 
time the reason is obvious, after looking at the source for the page: the 
link built for the picture in the nagios page is appending the assumed nagios 
directory (i.e. http://my-nagios-machine/nagios/images/logos/) to the 
location instructed above, ending up in something like:

http://my-nagios-machine/nagios/images/logos//usr/share/nagios/images/graph.png

Now - where is this path coming from? I grep-ed for it (nagios/images/logos) 
all over, but couldn't find it anywhere.

For those of you attempting to answer me that I should just have the file name 
(graph.png) there, I would like to kindly remind them that the directory 
structure of MDK9.1 nagios RPM is TOTALLY different than the 
/usr/local/nagios, thus me having had to change everything so far ... except 
for not being able to figure out this one.

TIA,
Stef


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
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