On Wed, 08 Oct 2008 17:21:23 +0200, "M." Sébastien LELIÈVRE <[EMAIL PROTECTED]> wrote:
>Greetings, > >I'm experiencing some odd issue with my nagios server. > >It dosen't notify by email anymore Anymore? So it worked before? What changed? Stuff generally doesn't stop working unless something was changed. >When I execute the corresponding command in the nagios (user) shell, I >receive an email The notification commands below have macros in. How did you execute the same command? Did you increase the debugging levels in nagios to see what it was executing? >I do not know where to start my investigation > >Here are some info : > >notify-host-by-email : > >/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: >$HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s >"[$HOSTGROUPNOTES$ $NOTIFICATIONTYPE$ Host $HOSTSTATE$ in $HOSTNAME$]" >$CONTACTEMAIL$ > > >notify-service-by-email : > >/usr/bin/printf "%b" " Nagios \n\nNotification Type: $NOTIFICATIONTYPE >$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS >$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional >Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "[$HOSTGROUPNOTES$ >$NOTIFICATIONTYPE$ Service $SERVICESTATE$ in $HOSTNAME$/$SERVICEDESC$]" >$CONTACTEMAIL$ 1. Increase the debugging levels to see what the macros are 2. Make sure there are entries in the logs saying it generated the alerts -- Jon Angliss ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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