Lack of "Additional Info" in alerts
Bryan K. Walton
zxcvbnm at tds.net
Mon Sep 15 22:12:34 CEST 2003
Hi Matt,
Thank you for your email. I am a little confused. Here is
the definition of my notification command below. I have some quotes in
there already. Should I be quoting some things?
Thanks,
Bryan Walton
# 'notify-by-email' command definition
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:
$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "**
$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SE
RVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
On Mon, Sep 15, 2003 at 10:34:45AM -0400, Matt Pounsett wrote:
> On Sat, 13 Sep 2003, Bryan K. Walton wrote:
>
> > correctly show the details. They just don't get sent in the email.
> > If anybody can point out where I might look to try and fix this, I
> > would be appreciative.
>
> The most obvious place to look is the definition of your notification
> command(s). That section is mostly likely trying to send the $OUPTUT$
> variable.. depending on how your notification command is defined, it may need
> to be quoted.
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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