send short SMS Notifications
Marc Powell
marc at ena.com
Fri Oct 9 14:51:21 CEST 2009
On Oct 9, 2009, at 5:29 AM, 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
Modify your notification command to insert sed into it to chop off the
part you don't like. I don't know exactly what you're using but
generally it'll look like --
echo "<Some nagios macros that end up outputting>NNTP OK - 0.144
second response time on port 119 [201 some really long text]" | /bin/
sed 's/\[.*//' | /some/command/to/send/SMS
--
marc
------------------------------------------------------------------------------
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