[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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