[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] sms alert sample script
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] sms alert sample script
- From: "Taylor Lewick" <tlewick (at) tradebotsystems.com>
- Date: Fri, 11 Apr 2008 09:43:08 -0500
- References: <07774C6E31D94A44A2A60E2085944F0901409393 (at) tbmail.tradebot.com><961092e10804101427k3363a73fi7fb94a8ea8eeddcb (at) mail.gmail.com> <20080410143501.aq6j5u6gu8ogc04g (at) webmail.stanford.edu>
- Thread-index: AcibUxzwIvkyghhqSeqDSWK3dQ896QAjthxQ
- Thread-topic: [hobbit] sms alert sample script
Thanks, also, the way you use the smsplus.sh script, do you place in
/hobbit/server/ext and add it into the hobbitlaunch.cfg? Or since its
just being called via alerts, do you not need to place it in
hobbitlaunch.cfg?
-----Original Message-----
From: Benjamin P. August [mailto:baugust (at) stanford.edu]
Sent: Thursday, April 10, 2008 4:35 PM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] sms alert sample script
Here's what we use. It started out life as smsplus.sh on deadcat, and
I swapped out one line so it has a more useful subject (because
BB-style numeric codes are pointless):
----start script----
#!/bin/bash
msg=`echo "${BBALPHAMSG}" | egrep "&yellow|&red"`
msg="\n${msg}"
# CODE:
#=======
# subject="!HB ${ACKCODE}"
subject="!Hobbit ${BBHOSTNAME}"
alert="${BBHOSTSVC} ${BBCOLORLEVEL}"
message="\n${alert}${msg}"
echo -e "${message}" | mail -s "${subject}" $RCPT
----end script----
--
--Ben
Benjamin P. August
System Administrator - VPUE
Stanford University
Quoting Josh Luthman <josh (at) imaginenetworksllc.com>:
> HOST=*
> MAIL josh (at) imaginenetworksllc.com COLOR=RED DURATION>15m REPEAT=60
> RECOVERED FORMAT=SMS
> #SCRIPT /home/hobbituser/server/ext/smsplus.sh
> josh (at) imaginenetworksllc.comDURATION>15m
> #4sms#MAIL 9371231234 (at) txt.att.com COLOR=RED DURATION>15m REPEAT=60
> RECOVERED FORMAT=SMS
>
> This what you're after?
>
> On Thu, Apr 10, 2008 at 4:46 PM, Taylor Lewick
<tlewick (at) tradebotsystems.com>
> wrote:
>
>> Can someone provide a sample script they are using to send out SMS
alerts
>> via hobbit. If you are using add-on tools to do this please provide
which
>> tools you are using.
>>
>> Is anyone creating aliases for phone numbers?
>>
>>
>>
>> Thanks,
>>
>> Taylor
>>
>>
>>
>
>
>
> --
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
> Those who don't understand UNIX are condemned to reinvent it, poorly.
> --- Henry Spencer
>
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk