Template-based extened host info

Cook, Garry GWCOOK at mactec.com
Thu Oct 9 16:26:59 CEST 2003


In the unregistered definition (template), try changing:
host_name SUN
To:
name SUN

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 720.220.1862 (Mobile) 

> -----Original Message-----
> From: Warich, Eyck [mailto:Warich at secunet.de] 
> Sent: Thursday, October 09, 2003 5:18 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Template-based extened host info
> 
> 
> Hi there,
> 
> i have some problems in defining some templated hostinfo 
> definitions, here
> is my example:
> 
> define hostextinfo {
> host_name SUN
> icon_image sun40.png
> vrml_image sun40.png
> statusmap_image sun40.png
> register 0
> }
> 
> define hostextinfo {
> use SUN
> host_name BLADE100
> }
> 
> This example does not work, for example in the status map the 
> default ?-logo
> appears. When i change the example to
> 
> define hostextinfo {
> host_name BLADE100
> icon_image sun40.png
> vrml_image sun40.png
> statusmap_image sun40.png
> }
> 
> everything works fine.
> 
> I thought about some problems with the template mechanism 
> here (although i
> thought is is enabled by default), so i recompiled nagios with the
> --with-template-extinfo option:
> 
>  External Data Routines:
>  ------------------------
>               Status data:  Default (text file)
>               Object data:  Template-based (text file)
>              Comment data:  Default (text file)
>             Downtime data:  Default (text file)
>            Retention data:  Default (text file)
>           Peformance data:  Default (external commands)
>        Extended info data:  Template-based (text file)
> 
> But this had no effect, the problem still occurs (btw i noticed the
> resulting binaries (nagios & *.cgi) to be exactly identical??)
> 
> Did i miss something?
> 
> Thx & regards,
> Eyck
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> 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
> 


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
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