Nagios Logos

Rich West Rich.West at wesmo.com
Fri Aug 15 19:13:23 CEST 2003


Bahhhh!  I just went back and checked the xedtemplate_config_file 
variable, and saw that it _looked_ correct.  So, thinking I did 
something stuipid, I copied and pasted "xedtemplate_config_file" into 
the cgi.cfg file to make sure I spelled it right (which I did), then I 
checked to see if the hostextinfo.cfg file existed at the location I had 
specified (/etc/hostextinfo.cfg).

Nope.. it was at /etc/nagios/hostextinfo.cfg.  Duh!  Now I feel dumb.  
Once I fixed that, it all worked.

I don't know why the extended host information did not work when 
specified in-line in the cgi.cfg file since the comments within the 
cgi.cfg file showed ways to do the proper definitions in-line as opposed 
to a seperate file, but, alas, I am beyond caring since it does work now. :)

Thanks for all of the help!  And, as expected, it was something simple!  
I was defining the hostextinfo within the cgi.cfg file instead of in a 
seperate file, and when I did do it in the seperate file, I had the path 
to that file wrong. :)

-Rich


> Tielman De Villiers wrote:
>
>Rich,
>
>I've compiled it with postgres support, so my cgi.conf is a bit different,
>but by adding:
>xedtemplate_config_file=[path_to_nagios]/etc/hostextinfo.cfg
>it showed the logos ...
>
>
>  
>


Rich West wrote:

> Yup.. All graphics are there, even optional ones I downloaded from the 
> site, and they are in:
> /usr/share/nagios/images/logos
>
> I did define the hostextinfo.cfg file, and I did put the definition 
> in.  It is almost as if it is completely ignoring it... :(
>
> Is there any way to tell what options nagios is running with (to 
> confirm just how it was compiled)?  Is there an easy way, without 
> recompiling, to turn on/off debugging?  Also, would there be any place 
> to find more detailed logs?
>
> -Rich
>
>
>
>> Antone, Nick wrote:
>>
>> I almost hate to ask, but did you put the graphic files on the 
>> system?  I tripped on that too.
>> Then, does your (nagios dir)/etc/hostextinfo.cfg file contain entries 
>> such as:
>>
>> define hostextinfo{
>>     host_name    printer1,printer2
>>     icon_image    hp-printer40.jpg
>>     statusmap_image    hp-printer40.gd2
>>     }
>>
>>
>>
>>
>>
>> -Nick
>>
>
>
> Tielman De Villiers wrote:
>
>> Try:
>>
>> xedtemplate_config_file=[path_to_nagios]/etc/hostextinfo.cfg
>>
>> in cgi.cfg
>>
>>
>>  
>>
>>> -----Original Message-----
>>> From: Rich West [mailto:Rich.West at wesmo.com]
>>> Sent: 14 August 2003 19:03
>>> To: nagios-users at lists.sourceforge.net
>>> Subject: [Nagios-users] Nagios Logos
>>>
>>>
>>> I've seen a BUNCH of messages regarding this on the list, but I have 
>>> yet to be able to get it to work...
>>>
>>> I have nagios installed and happily monitoring machines, but I have 
>>> been unable to get the logos to show up properly in any of the 
>>> status maps.
>>>
>>> I built Nagios via:
>>> ./configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu 
>>> --target=i386-redhat-linux --program-prefix= --prefix=/usr 
>>> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
>>> --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
>>> --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var 
>>> --sharedstatedir=/usr/com --mandir=/usr/share/man 
>>> --infodir=/usr/share/info --datadir=/usr/share/nagios 
>>> --libexecdir=/usr/lib/nagios/plugins --localstatedir=/var/log/nagios 
>>> --sbindir=/usr/lib/nagios/cgi --sysconfdir=/etc/nagios 
>>> --with-cgiurl=/nagios/cgi-bin --with-command-user=apache 
>>> --with-command-grp=apache --with-file-perfdata 
>>> --with-gd-lib=/usr/lib --with-gd-inc=/usr/include 
>>> --with-init-dir=/etc/rc.d/init.d --with-htmurl=/nagios 
>>> --with-lockfile=/var/run/nagios.pid --with-nagios-user=nagios 
>>> --with-nagios-grp=nagios --with-template-objects 
>>> --with-template-extinfo
>>>
>>> I've tried following the info in the cgi.cfg file :
>>> hostextinfo[myhost]=/serverinfo/myhost.html;redhat.gif;redhat.
>>> jpg;redhat.gd2;RedHat Linux Server;;;
>>>
>>> I've tried what I have seen on the list:
>>>
>>> define hostextinfo{
>>>         name            Switch
>>>         icon_image      switch40.png
>>>         icon_image_alt  switch40.gif
>>>         vrml_image      switch40.png
>>>         statusmap_image switch40.gd2
>>>         register        0
>>>         }
>>>
>>> define hostextinfo{
>>>         use             Switch
>>>         host_name       bay
>>>         }
>>>
>>> I've added the line to point to the hostextinfo file, and even put 
>>> garbage in that file.. It is as if it is being ignored.
>>>
>>> I am sure it is something simple.. perhaps someone can point out 
>>> what I missed?
>>>
>>> Thanks!
>>> -Rich
>>>   
>>
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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