PDA

View Full Version : Nagios not showing images on status map


mrcoffee
19th January 2009, 17:25
I have no clue....

In Centreon I configured it like this:
Administration > Options > Nagios > Images Directory
/usr/local/nagios/share/images/l o g o s/ (the word l0g0s without spaces, it is deleted by this forum automatically)

When I go to
Administration > Media
I can see the images and the directory. The location of the image looks like this: .//apc.png

I can add the images to the hosts when I go to
Configuration > Host > Select a Host > Host Extended Infos
I added images to:
- Icon
- VRML image
- Nagios Status Map Image

When I apply the new config I can see the information in the following config file:
/usr/local/nagios/etc/hostextinfo.cfg

define hostextinfo{
host_name core
notes Core routers EZH1 en EZH2
icon_image .//nortel.gif
vrml_image .//nortel.gif
statusmap_image .//nortel.gif
}

define hostextinfo{
host_name ezhappl01
icon_image .//windows.gif
vrml_image .//windows.gif
statusmap_image .//windows.gif
}

Etcetera


Then.... In Nagios when I go to the HOST overview I see the little images. When I go to the statusmap I don't see images!

If I look up the source code of the webpage I see this when I look at athe line for one host:

<AREA shape='rect' coords='474,310,514,375' href='statusmap.cgi?host=ezhdata06&layout=5&max_width=0&max_height=0&proximity_width=1000&proximity_height=800&layermode=exclude' onMouseOver='showPopup("<table border=0 cellpadding=0 cellspacing=5><tr><td><img src=\"/nagios/images/s/.//windows.gif\" border=0 width=40 height=40></td><td class=\"popupText\"><i></i></td></tr><tr><td class=\"popupText\">Name:</td><td class=\"popupText\"><b>ezhdata06</b></td></tr><tr><td class=\"popupText\">Alias:</td><td class=\"popupText\"><b>ezhdata06</b></td></tr><tr><td class=\"popupText\">Address:</td><td class=\"popupText\"><b>ezhdata06.elisabeth.nl</b></td></tr><tr><td class=\"popupText\">State:</td><td class=\"popupText\"><b><font color=green>Up</font></b></td></tr><tr><td class=\"popupText\">Status Information:</td><td class=\"popupText\"><b>PING OK - Packet loss = 0%, RTA = 0.30 ms</b></td></tr><tr><td class=\"popupText\">State Duration:</td><td class=\"popupText\"><b> 4d 7h 0m 46s</b></td></tr><tr><td class=\"popupText\">Last Status Check:</td><td class=\"popupText\"><b>19-01-2009 16:13:30</b></td></tr><tr><td class=\"popupText\">Last State Change:</td><td class=\"popupText\"><b>15-01-2009 09:13:13</b></td></tr><tr><td class=\"popupText\">Parent Host(s):</td><td class=\"popupText\"><b>None (This is a root host)</b></td></tr><tr><td class=\"popupText\">Immediate Child Hosts:</td><td class=\"popupText\"><b>0</b></td></tr></table><br><b><u>Services:</u></b><br>- <font color=green>1 ok</font><br>- <font color=orange>1 unknown</font><br>",event)' onMouseOut='hidePopup()'>

When I hover over the host I can see the image in the summary window that appears! But it does not appear on the map.

When in Nagios I go to:
Configuration > View Config > Hosts
Then I see the images for every host i configured it correctly. ( Isee the image and the name like .//windows.gif )

[..edit..]
By the way.. when I upload files they end up in /usr/local/centreon/www/img/media/images/l o g o s
I tried to delete all the images from "/usr/local/nagios/share/images/l o g o" to see what happens... i see no images at all anymore on the status map.
When I copy them back to /usr/local/nagios/share/images/l o g o s it does not help...
This is so weird....

Anybody an idea??

Thnx
Roderick

mrcoffee
20th January 2009, 11:45
Looks like *.gif files are not shown on the status map. When I use a jpg or png it works.

C'est etrange, hein? Any reason why? I'm sure I used gif format succesfully before. I'm just guessing: is this some cgi restriction?