Add ## for mail to sms

Martyn martyn at chetnet.co.uk
Sun Mar 15 19:45:34 CET 2009


Excellent, thank you.

Martyn 

-----Original Message-----
From: Philipp Geschke [mailto:nagios at pgmail.net] 
Sent: 15 March 2009 18:02
To: Martyn
Cc: nagios-users at lists.sourceforge.net
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
Nagios-users at 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





More information about the Users mailing list