On Mar 10, 2009, at 1:20 PM, Udo Müller wrote: > Hi all, > > I recently upgraded my nagios 2.x to 3.x. Nagios' preflight-check > runs fine.
Is this an implication that this worked under 2.x? > For service notification i use this event handler: > > /usr/bin/printf "%b" "***** Nagios ***** Notification Type: > $NOTIFICATIONTYPE$ Service: $SERVICEDESC$ Host: $HOSTALIAS$ Address: > $HOSTADDRESS$ State: $SERVICESTATE$ Date/Time: $LONGDATETIME$ > Additional > Info: $SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ > Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > Why does nagios send to '$'? Event handlers are not meant to be used for notifications. The $CONTACTEMAIL$ macro isn't valid for them. If this was working under 2.x (I have doubt it was since the macro wasn't supposed to be valid then either), it shouldn't have been and would have been a bug. http://nagios.sourceforge.net/docs/3_0/macrolist.html -- Marc ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Nagios-users mailing list [email protected] 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
