statusmap icons
Rob Moss
robmossrm at aol.com
Fri Sep 2 16:41:45 CEST 2005
See below for example.
Subhendu Ghosh wrote:
> On Thu, 1 Sep 2005, Gonzales, Youn wrote:
>
>> The GD2 images work on the statusmap, but do not work on the popup, so
>> it looks like I can either have the image on the map or the image on the
>> popup, but not both.
>
>
>> From docs:
>
> http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostextinfo
>
> define hostextinfo{
> host_name host_name
> notes note_string
> notes_url url
> action_url url
> icon_image image_file
> icon_image_alt alt_string
> vrml_image image_file
> statusmap_image image_file
> 2d_coords x_coord,y_coord
> 3d_coords x_coord,y_coord,z_coord
> }
>
> Note:
> icon_image/vrml_image - should be png/gif/jpg
> statusmap_image - should be gd2
>
Here is a working example
/usr/local/nagios/etc/hostextinfo.cfg:
define hostextinfo{
host_name freebsd.somewhere.com
notes frizzee bizzee
icon_image freebsd40.png
icon_image_alt FreeBSD 5.4
vrml_image freebsd40.png
statusmap_image freebsd40.gd2
2d_coords 1000,2500
3d_coords 100.0,50.0,75.0
}
The logo icon pack is installed in /usr/local/nagios/share/images/logos
rmoss at freebsd [/usr/local/nagios/share/images/logos]$ ls -la *freebsd*
-rw-r--r-- 1 500 500 1455 Sep 23 2001 freebsd40.gd2
-rw-r--r-- 1 500 500 1491 Sep 23 2001 freebsd40.gif
-rw-r--r-- 1 500 500 1697 Sep 23 2001 freebsd40.jpg
-rw-r--r-- 1 500 500 1627 Sep 23 2001 freebsd40.png
Cheers
rob.
>>
>> -----Original Message-----
>> From: Arno Lehmann [mailto:al at its-lehmann.de]
>> Sent: Thursday, September 01, 2005 4:23 PM
>> To: Gonzales, Youn
>> Cc: NAGIOS
>> Subject: Re: [Nagios-users] statusmap icons
>>
>> Hi,
>>
>> Gonzales, Youn wrote:
>>
>>> I am not able to view gd2 images in internet explorer. Is there a
>>
>> plugin
>>
>>> or something I need to install?
>>
>>
>> No, you don't view them directly. They are used by libgd to create the
>> statusmap image.
>>
>> You can simply convert one of your gifs to a gd2 format image, modify
>> the configuration concerning hostextinfo to use the gd image, and see
>> what happens. See the manual secion on extended information
>> configuration for details, but note that my experience was that only gd
>> images worked. I never tried to determine if that was a configuration
>> error, an incorrect manual description, or anything else.
>>
>> With Nagios 1.2 and 2.0b3, by the way.
>>
>> Arno
>>
>>> -----Original Message-----
>>> From: Arno Lehmann [mailto:al at its-lehmann.de]
>>> Sent: Thursday, September 01, 2005 3:30 PM
>>> To: Gonzales, Youn
>>> Cc: NAGIOS
>>> Subject: Re: [Nagios-users] statusmap icons
>>>
>>> Hi,
>>>
>>> Gonzales, Youn wrote:
>>>
>>>
>>>> I am running 2.0b4 on Fedora 4. I can't seem to get the statusmap
>>>
>>>
>>> icons
>>>
>>>> to work properly.
>>>>
>>>> define hostextinfo{
>>>> host_name uscpgls1010
>>>> icon_image network_switch.gif
>>>> statusmap_image network_switch.gif
>>>> }
>>>>
>>>> The icons show up in the status views - ie host detail - and when I
>>>> float over the device on the statusmap the icons are in the top left
>>>> corner of the popup. But, the icons on the status map are all the
>>>> unknown.gif icons.
>>>>
>>>> I can browse all of the icons, so it is not an apache or permissions
>>>> issue. Any suggestions?
>>>
>>>
>>>
>>> Yes, try using gd2 images. his worked here, I don't know what the
>>
>> manual
>>
>>>
>>> has to say...
>>>
>>> Arno
>>>
>
--
Rob Moss
Unix Systems Admin
Hosting & DB Operations
Hammersmith, London, UK
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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