[hobbit] sms alert sample script

Benjamin P. August baugust at stanford.edu
Fri Apr 11 17:46:43 CEST 2008


It is in $HOBBIT_HOME/server/ext, and it is only called for alerting,  
so no, it does not go into hobbitlaunch.cfg at all.


-- 
--Ben
Benjamin P. August
System Administrator - VPUE
Stanford University


Quoting Taylor Lewick <tlewick at tradebotsystems.com>:

> 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
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>





More information about the Xymon mailing list