Template-based extened host info
Mike McClure
mmcclure at pneservices.com
Thu Oct 9 16:23:34 CEST 2003
When you define a template, you use the "name" directive to identify it later.
"host_name" won't work for that.
This is the correct way to do what you want:
define hostextinfo {
name SUN <---- "name", not "host_name"
icon_image sun40.png
vrml_image sun40.png
statusmap_image sun40.png
register 0
}
define hostextinfo {
use SUN
host_name BLADE100
}
By the way,
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
> 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
>
>
--
Mike McClure, CCIE # 5125, CISSP # 30232
PNE Services, Inc. - http://www.pneservices.com
mmcclure [at] pneservices [dot] com
mobile: 913-636-5590
-------------------------------------------------------
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