Host Notifications Truncated
Stover, Beth
BStover at NorcalMutual.com
Tue Apr 19 17:41:06 CEST 2005
I'm having a problem with my host notifications through e-mail being
truncated. Service notifications are fine -- they're properly formated
and detailed. SMS notifications are fine too for both e-mail and host.
Nagios ver 1.2
Here's what my host notification email looks like:
<mailto:nagios-users at lists.sourceforge.net>
PROBLEM alert - <host name>/ is
That's it.
Here are my command definitions:
# 'notify-by-email' command definition (ORIGINAL)
define command{
command_name notify-by-email
command_line /usr/bin/echo -e 'Notification 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$/$SERVICEDESC$ is
$SERVICESTATE$ ' $CONTACTEMAIL$
}
# 'host-notify-by-email' command definition (ORIGINAL)
define command{
command_name host-notify-by-email
command_line /usr/bin/echo -e 'Notification 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$/$SERVICEDESC$ is
$SERVICESTATE$ ' $CONTACTEMAIL$
}
Any ideas? Should I be getting more detailed notifications from the
host notification?
Beth Stover
Systems Administrator
415.395.8768
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050419/aa40239c/attachment.html>
More information about the Users
mailing list