Hello,
does anybody know why $HOSTNAME$ in hostextinfo->notes_url expands to
host name, while $HOSTGROUPNAME$ expands to nothing?
With Nagios 2.10, I am using notes_url in hostextinfo to create an icon
displayed next to host name. The icon is clickable and provides
convenient access to device configuration stored in CVS and available
via cvsweb.
The following snippet works well:
define hostextinfo {
host_name ^sw-.*
notes_url /cgi-bin/cvsweb.cgi/XXX/configs/$HOSTNAME$?rev=.
}
XXX denotes site name. It is the same as the name of Nagios hostgroup
the host is in. So the following would be an elegant way to define
notes_url for gateways on all sites:
define hostextinfo {
host_name ^gw-.*
notes_url
/cgi-bin/cvsweb.cgi/$HOSTGROUPNAME$/configs/$HOSTNAME$?rev=.
}
However, the resulting URL looks like .../cgi-bin/cvsweb.cgi//configs/...
Is it a bug or feature? ;-)
Thanks,
Rosta
--
Rostislav Opocensky
http://orbis.pictus.org/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
[email protected]
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