Xymon Mailing List Archive search

sms alert sample script - good solution?

list Phil Wild
Sat, 12 Apr 2008 00:26:47 +0800
Message-Id: <user-055e0e2ffae1@xymon.invalid>

Hi Oliver,

Whoops! , I just reread your message and understand your comment better now
- when I first read it I didn't realise you were making comment on a
solution where someone was emailing an sms through a mail gateway rather
than an direct sms based soln.

Sorry

Phil

2008/4/12 Phil Wild <user-e365c1418192@xymon.invalid>:
Hi Oliver,

Have a good read of the man pages around hobbit-alert. You do not need to
involve email when sending messages at all and probably the most reliable
method is with an attached GSM modem. It is much faster than analogue
dialing a messaging provider.

We use two gsm modems attached to two independent hobbit servers in two
data centres connected to two different mobile providers. We have hobbit
monitoring the messaging queues and have failover in place, if a message
fails to get out via one provider after a number of retries, it is
transferred to the other server.

We have also planned to set up a ping test via sms where one modem sms's
the other but it has fallen off the bottom of our todo list as the current
configuration has proven to be very stable...

It would be nice though if the modem hardware was more stable, regular
restarts when they hang (wavenet modems). Can't say other brands are better
and the monitoring and scripting has made them reliable enough so that we
don't need to replace them and start again...

Your carrier may also be able to provide a status message feature where
you receive back an sms once your message has entered the recipients phone
(extra messaging cost and no guarantee they will read it of course but then
that is what escalation is for). I am sure it would be possible to script a
confirmation check and retry on the other network if you really wanted to
guarantee the message got to the phone...

Cheers

Phil

2008/4/11 Oliver Grube <user-f10fe95e937b@xymon.invalid>:

 Hello,
this is just my opinion and something to thought about...

I have read about SMS alerting here. I think, from a reliability point
of view, this kind of alerting, is not stable enough.
Your designs are based on sending an eMail to an SMS sending system.
A simple question: How do you get alerts for your eMail system?
We have implemented this functionality with a simple modem attached to
the Hobbit system and we dial the SMS provider directly.
I think, that this is a more reliable solution, if you want to do SMS
Alerting.

Another option is to give the important guys Blackberry or similar
devices and let them read the alert via eMail.
Advantage: they can access internal hobbit systems directly and confirm
alerts...

As I said... just some thoughts...

mit freundlichen Grüßen - Best regards
Hälsningar - Met vriendelijke groeten
Sincères salutations

Oliver Grube
EU Security&Controls Manager


[image: Inactive hide details for "Benjamin P. August"
<user-e992dd5eb2a5@xymon.invalid>]"Benjamin P. August" <user-e992dd5eb2a5@xymon.invalid>


    *"Benjamin P. August" <user-e992dd5eb2a5@xymon.invalid>*

            2008-04-11 17:44
            Please respond to
            user-ae9b8668bcde@xymon.invalid


To

user-ae9b8668bcde@xymon.invalid
cc


Subject

RE: [hobbit] sms alert sample script
Yes, that's what we did.

----from hobbit-alerts.cfg----
$SUPPSMS=SCRIPT /u01/webapps/hobbit/server/ext/smsplus.sh
[comma-separated list of SMS email addresses] DURATION>6 REPEAT=120
RECOVERED
----


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


Quoting Taylor Lewick <user-ccbabb0b3ab0@xymon.invalid>:
I mean, we have a staff of 5 people who I would want to send the alert
too on their cell phones.  Can I create a group alias like IT-NOC that
would have 5 cell phone numbers to alert to?

-----Original Message-----
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid<user-4c45a83f15cb@xymon.invalid>
]
Sent: Thursday, April 10, 2008 9:09 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] sms alert sample script

5 lines or an alias?


On 4/10/08, Taylor Lewick <user-ccbabb0b3ab0@xymon.invalid> wrote:
Thanks, I was actually after the smsplus.sh part, hadn't bothered to
check deadcat, I should have done that.  Ben posted the smsplus.sh,
so
between the two I think I am good to go.


I believe I can setup macros with the hobbit-alerts.cfg file too.
 Can
you set up an alias group so that you can send SMS alerts to multiple
cell phones, i.e. say you want to send it out to 5 phones at once?


Thanks,
Taylor


From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid<user-4c45a83f15cb@xymon.invalid>
]
Sent: Thursday, April 10, 2008 4:28 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] sms alert sample script


HOST=*
  MAIL user-4c45a83f15cb@xymon.invalid COLOR=RED DURATION>15m REPEAT=60
RECOVERED FORMAT=SMS
  #SCRIPT /home/hobbituser/server/ext/smsplus.sh
user-4c45a83f15cb@xymon.invalid DURATION>15m
  #4sms#MAIL user-ede67799c5ea@xymon.invalid 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
<user-ccbabb0b3ab0@xymon.invalid> 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: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

--
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

 Campbell's Germany GmbH
Registergericht Luebeck • Reg. Nr. HRB 4082
Geschaeftsfuehrer: Joseph B. Folds III

Geschaeftssitz:		
Geniner Strasse 88 - 100
23560   Luebeck
Deutschland

**********************************************************************
This e-mail and any files transmitted with it may contain
confidential information and is intended solely for use by
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not
disclose its contents to others and delete it from your
system.

**********************************************************************

-- 
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid