Excellent, thank you. Martyn
-----Original Message----- From: Philipp Geschke [mailto:[email protected]] Sent: 15 March 2009 18:02 To: Martyn Cc: [email protected] Subject: Re: [Nagios-users] Add ## for mail to sms Hi Martyn, Martyn schrieb: > /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/mailx -s > "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **" $CONTACTEMAIL$ Right behind the $SERVICEOUTPUT$, so make it look like > /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/mailx -s > "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ **" $CONTACTEMAIL$ Cheers, Philipp ------------------------------------------------------------------------------ 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
