> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Bill Kintz > Sent: Wednesday, June 28, 2006 3:28 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Host Notification Problem > > The problem I am having is that my service notifications are being sent > and delivered properly, but host notifications being sent to the exact > same contact are never being delivered, even though nagios indicates they > were sent. > > Here are the pertinent config snippets: > > - contacts.cfg: > > # 'netops' contact definition > define contact{ > contact_name netops > alias netops > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,c,r > host_notification_options d,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email [EMAIL PROTECTED] > } > > > - misccommands.cfg: > > # 'host-notify-by-email' command definition > define command{ > command_name host-notify-by-email > command_line /usr/bin/printf "%b" "Date/Time: > $LONGDATETIME\nInfo: $HOSTOUTPUT$\n" | /usr/bin/mail -s "$HOSTSTATE$ alert > for $HOSTNAME$" $CONTACTEMAIL$ > }
[chop] > > Nagios 2.1 starting... (PID=25864) > Send options without primary recipient specified. > Usage: mail [-BFintv~] [-s subject] [-a attachment] [-c cc-addr] [-b bcc- > addr] [-r from-addr] [-h hops] [-R reply-addr] to-addr ... [- sendmail- > options ...] > mail [-BeHiInNv~] [-T name] -f [name] > mail [-BeinNv~] [-u user] > > Logic tells me that something is wrong with the host-notify-by-email > command setup that is causing mail to be unhappy, but I've been over this > about a zillion times and simply can't see the problem, which means I'm > probably overlooking something incredibly stupid and simple. Yup. That is strange. It appears that $CONTACTEMAIL$ isn't being populated. You can verify that by using something like the following for your notification command -- command_line echo '/usr/bin/printf "%b" "Date/Time: $LONGDATETIME\nInfo: $HOSTOUTPUT$\n" | /usr/bin/mail -s "$HOSTSTATE$ alert for $HOSTNAME$" $CONTACTEMAIL$' >> /tmp/try-notify Maybe /tmp/try-notify will have something cluefull in it after a notification attempt. -- Marc Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users@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