send short SMS Notifications

Assaf Flatto assaf.flatto at ssp-intl.com
Fri Oct 9 13:44:24 CEST 2009


Hello

If memory serves me right the sms command uses cut command to limit the sms to 140 characters :
#define command{
#        command_name    notify-service-by-SMS
#        command_line    /bin/echo "$HOSTNAME$-$SERVICEDESC$:$NOTIFICATIONTYPE$:$SHORTDATETIME$:
$SERVICEOUTPUT$" | /usr/bin/cut -b 1-140 | /usr/bin/sms_clie
#        }
if you want it shorter , yo can either remove the unwanted macros or make the SMS short with the cut 
command 


however , how will you know to which host/service is the recovery referring to ? or at what time did 
the recovery occur ??


Assaf

On Friday 09 October 2009 10:29:13 Richard Gliebe wrote:
> Hi all,
>
> is there a way to cut an SMS Notification Text from:
>
> NNTP OK - 0.144 second response time on port 119 [201
> localnews.DOMAIN.TLD InterNetNews NNRP server INN 2.3.4 (20020620
> prerelease) ready (no posting).]
>
> to
>
> NNTP OK - 0.144 second response time on port 119
>
> We ware running nagios-2.3 on a FreeBSD 6.1-RC Box
>
> I know this installation is really old ;-)
>
> My next step is the Upgrade to FreeBSD 7.2-STABLE with nagios-3.0.6 from
> ports.
>
> thanks
> Richard



-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
 
 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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