alerts not reaching me
Payal Rathod
payal-nagios at scriptkitchen.com
Tue Sep 28 20:47:48 CEST 2004
On Tue, Sep 28, 2004 at 01:14:06PM -0500, Marc Powell wrote:
>
> In the log entry above, there is no '/bin/mail' after the '|' in
> ...'Packet loss = 0%, RTA = 570.19 ms" | -s "**'... Therefor the shell
> is looking for a command named '-s' to pipe the printf output to which
> of course doesn't exist. Does your command definition include '|
> /bin/mail -s "**'...?
I have in my misccommands.cfg,
# 'notify-by-email' command definition
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
What do I change?
With warm regards,
-Payal
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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