Getting images to work....

mightyreds pah at campana.com
Wed Apr 30 19:24:49 CEST 2003


Try using the template format, it worked for me.  Also, you should be maintaining a separate hostextinfo.cfg file for this.

To do this set the following in the cgi.cfg:

xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cf g

Then create your hostextinfo.cfg file, and define the hosts using the following template:

define hostextinfo{
       host_name       host_name
       notes_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
       }

So using your host multia it would like like this:

define hostextinfo{
       host_name       multia
       notes_url       
       icon_image      redhat.gif
       icon_image_alt  
       vrml_image      redhat.png
       statusmap_image redhat.gd2
       2d_coords       
       3d_coords       
       }

Also make sure that that you use tabs, and not spaces, to format the definition (similar to the other .cfg files).


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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