Another Notifications Problem

Daniel Tuecks dtuecks at neuwied.de
Tue Feb 24 12:23:06 CET 2004


Hi

I'm running Nagios 2.0a1 / November 18, 2003. I noticed that all my Notifications come without "Additional Info". I'm notifing my nagios-users via SMS and email. 
In my misccomands.cfg, I configured

---snip---------------------

# 'notify-by-email' command definition
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios 2.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }

# 'notify-by-sms' command definition
define command{
        command_name    notify-by-sms
        command_line    /usr/bin/printf "%b" "NAGIOS-$NOTIFICATIONTYPE$\n\nSrvc:$SERVICEDESC$\nHst:$HOSTALIAS$\nStat:$SERVICESTATE$\n\n$DATETIME$\n\n$OUTPUT$\n" | /usr/local/bin/sendsms.pl $CONTACTPAGER$
        }

---snip---------------------

Notifications are sent and formated well. Only the $OUTPUT$ variable doesn't show up. Instead of $OUTPUT$ it produces only a "$". 

---snip----sample-of-notification------snip---

***** Nagios 2.0 *****

Notification Type: RECOVERY

Service: Volume BLA
Host: blabla
Address: 123.123.123.123
State: OK

Date/Time: Tue Feb 24 11:59:07 CET 2004

Additional Info:

$

---snip----sample-of-notification------snip---

This is not related to the libexec/check_command i use. ...and all of my check_commands produce some kind of output. Whats wrong with this setup?

Daniel


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&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