No notifications sent out, but need direct recipients?

Andreas Ericsson ae at op5.se
Sat Nov 5 16:28:01 CET 2005


u q wrote:
> Nagios(v2.0b4) seems to work ok, but no notifications
> were sent out. The message "You must specify direct
> recipients with -s,-c, or -b" displayed when status
> changed.
>  
> service_notification_commands,host_notification_commands
> all specified notify-by-epager, it's as following:
> # 'notify-by-epager' command definition
> define command{
>         command_name    notify-by-epager
>         command_line    /usr/bin/printf "%b" "Service:
> $SERVICEDESC$\nHost: $HOSTNAME$\nAddress:
> $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo:
> $SERVICEOUTPUT$\nDate: $LONGDATETIME$"  -b  |
> /bin/mail -s "$NOTIFICATIONTYPE$:
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$"
> $CONTACTPAGER$
>         }
>  

I hope you're aware of the fact that you're using the $CONTACTPAGER$ 
macro with /bin/mail. That macro refers to the pager variable in contact 
definitions.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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