some macros not expanding

Pete Siemsen siemsen at ucar.edu
Fri Jan 27 01:12:08 CET 2006


I'm a relative Nagios newbie, having trouble getting some command macros 
to work.  I have a command definition that looks like this:

define command{
        command_name    notify-by-textmessage
        command_line    /usr/bin/printf "%b" " yo." | /usr/bin/mail -s 
"$NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" 
$CONTACTPAGER$
        }

It works, except that the $SERVICEDESC$ and $SERVICESTATE$ have no 
value.  The other macros expand fine.  Any help appreciated.

-- Pete



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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