Service notification command - help

Arno Lehmann al at its-lehmann.de
Sat May 21 22:10:12 CEST 2005


Paul Seaman wrote:

> Using Nagios 2.0b3... my service notification command does not work.  I 
> am using the following command:
> 
> /usr/bin/printf "$OUTPUT$" | /bin/mail -s '$SERVICESTATE$ alert for 
> $HOSTALIAS$/$SERVICEDESC$' $CONTACTEMAIL$

Macro names have changed. It's in the manual, IIRC in chapter Misc, 
macros in commands or something like that. Or, change $OUTPUT$ to 
$HOSTOUTPUT$ or $SERVICEOUTPUT$, respectively.

Arno

> Everything works, except when I get the e-mail, there is no additional 
> information in the body of the e-mail (ie I am missing the contents of 
> $OUTPUT - the info on latency or packet loss when a check_ping goes 
> critical or warning, for example)
> 
> Anybody have any ideas?  I assume this is a simple problem but I just 
> can't seem to get it to work.
> 
> Paul
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> 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

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
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