I got problem with sending messages:(
Marc Powell
marc at ena.com
Thu Dec 11 16:44:53 CET 2008
On Dec 11, 2008, at 7:52 AM, Витя Борисов wrote:
> Hi there!
> I got problem with sending messages. User nagios is capable of
> sending messages with assigned to him rights without any restrictions.
>
> ns:~ # su - nagios
> nagios at ns:~> /usr/bin/printf "test msg, yo!" | mailx -v -A myisp
> vitya at xxx.yyy
You test with mailx here...
> [1228980610.181461] [032.2] [pid=3041] Raw notification command: /usr/
> bin/printf "%b" "***** Nagios *****\n\nNotification Type:
> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /
> usr/bin/nail -send -A myisp $CONTACTEMAIL$
... but actually use /usr/bin/nail here. Your test is invalid. Did you
mean to use /usr/bin/mailx in your notification command{} instead? Did
you mean to use /usr/bin/nail but with different command-line arguments?
> Finally, message is not received. What's the problem?
/usr/bin/nail doesn't work as you're using it? Nagios has done what
it's supposed to do and handed off the notification to /usr/bin/nail.
Either it doesn't work or your mail logs will contain further
information.
--
Marc
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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