$HOSTALIAS$
Marc Powell
marc at ena.com
Fri Jul 27 14:29:41 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Sander Klein
> Sent: Friday, July 27, 2007 2:42 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] $HOSTALIAS$
>
> Hi,
>
> when I do the following:
>
> define serviceextinfo{
> hostgroupname somegroup
> service_description something
> notes_url http://somewhere/$HOSTALIAS$
> }
>
> then $HOSTALIAS$ doesn't get substituted. When I use $HOSTNAME$ it
does
> work. Is this expected behaviour?
No, it's not. $HOSTNAME$ shouldn't work. Macros are only supposed to be
available within the command_line of a command{} definition and only for
the following --
1. Service checks
2. Service notifications
3. Host checks
4. Host notifications
5. Service event handlers and/or a global service event handler
6. Host event handlers and/or a global host event handler
7. OCSP command
8. OCHP command
9. Service performance data commands
10. Host performance data commands
If that$HOSTNAME$ substitution is working now I'd say you've encountered
a convenient bug. Based on my possibly outdated understanding of the
program flow it shouldn't be working.
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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