> -----Original Message----- > From: Joe Rhett [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 29, 2005 2:21 PM > To: Marc Powell > Cc: [email protected] > Subject: Re: [Nagios-users] want acknowledgement alerts to email > acknowledgement note > > On Tue, Nov 29, 2005 at 11:05:19AM -0600, Marc Powell wrote: > > Presumably you're using nagios 2.x. $OUTPUT$ was the 1.x equivalent of > > $SERVICEOUTPUT$. You want $SERVICEACKCOMMENT$. > > > > http://nagios.sourceforge.net/docs/2_0/macros.html > > Hm -- this is not an improvement. This now guarantees that you can't you > old-style printf command lines, but instead have to pass everything to a > script and perform if/then/else. Normally I wouldn't mind, but the *ONLY* > reason this is necessary is because the information was moved into another > variable.
You can still use printf if you're not a perfectionist. There are dozens of new macros and they're significantly more representative of the information they contain. I for one am glad they changed to be better organized and more useful. Is it really such a bother to print out $SERVICEACKCOMMENT$ for every notification? I would expect the Ack Comment to be blank on all but ACKNOWLEDGEMENT and subsequent alerts (escalations). -- Marc ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ 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
