1827452 Members
4081 Online
109965 Solutions
New Discussion

EMS Alerts via SMS

 
Ryan Bernard
Frequent Advisor

EMS Alerts via SMS

Hi All

I currently have a script which can be run on HP-UX server to send SMS. Is there a way in which I can configure EMS to activiate this script whenever there is an event?

Or is there any other ways to send EMS events via SMS?


Thanks to all~!
11 REPLIES 11
Avinash20
Honored Contributor

Re: EMS Alerts via SMS

Hope this might help you

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1264696

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1315988
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
rariasn
Honored Contributor

Re: EMS Alerts via SMS

Hi,

# man monconfig

Notification Method

This selection will allow the user to select a location to send an alert issued by a monitor request. Locations can be:

UDP - User Datagram Protocol (a host name and port number will be requested)
TCP - Transmission Control Protocol (a host name and portnumber will be requested)
OPC - OpenView Messaging Protocol (this selection is only offered when OpenView Messaging is installed on the system)
SNMP - Simple Network Management Protocol
TEXTLOG - A text file (path will be requested)
SYSLOG - The system log
EMAIL - An electronic mailbox address (email address will be requested)
CONSOLE - The system console

rgs,
Ryan Bernard
Frequent Advisor

Re: EMS Alerts via SMS

Thanks for the advice. But any idea which option in monconfig will be able to execute a script?

Or any other methods?
Jeeshan
Honored Contributor

Re: EMS Alerts via SMS

you can create a script which will collect the EMS notification and send it to the SMS gateway server.

you can use kannel to configure SMTP gateway for sending SMS.
http://www.kannel.org


I'm currently working on it, though i'm not scripting guru. It'll take some time to stand.
a warrior never quits
Ryan Bernard
Frequent Advisor

Re: EMS Alerts via SMS

Actually I already have a script to send the sms. Now I just trying to find a way to get the EMS to activate this script whenever there is an event.

But thanks for the suggestion on kannel. :)
Jeeshan
Honored Contributor

Re: EMS Alerts via SMS

can you please share your script with me?
a warrior never quits
TTr
Honored Contributor

Re: EMS Alerts via SMS

You can have EMS configured to put its alerts to a file (TEXTLOG) and then have your script read that same file and send it out. Your script should copy the EMS textlog to another cumulative log for record keeping and the empty it out (zero the contents but not delete the file). You need to test it, in case EMS complains when you empty its textlog file from within your script.
OldSchool
Honored Contributor

Re: EMS Alerts via SMS

as noted in one of the posts linked above, you can send email direct to a cellphone (in most cases). the email address is generally in the form of @carriergateway.

full phone # including Area Code. Most of the carrier gateways are listed in the post noted.
Shinji Teragaito_1
Respected Contributor

Re: EMS Alerts via SMS

Hi,

As OldSchool mentions, you can configure monconfig to send a
notification message to somebody directly.

If you want to receive a notification message you customized, the
following procedures may be your solution:

(1) configure monitoring requests you want in the monconfig command.

NOTE: select "6) EMAIL" as the notification method and enter
"launch_sms@xxxx.your.domain" as the email address.

(2) add a new mail alias

# vi /etc/mail/aliases

launch_sms : | /tmp/send_sms_script

# newaliases
/etc/mail/aliases: xx aliases, longest yy bytes, zzz bytes total
#

NOTE: change /tmp/send_sms_script to whatever you have.

I hope this indirect methond works for you.

Good luck

Shinji
Ryan Bernard
Frequent Advisor

Re: EMS Alerts via SMS

Thanks alot for your advice. I will try out some of those that is recommended.

just FYI, the sms script can be manually activated using the below:

root@sms # ./smsClient_HPUX

Version: 1.01
Date: 30-06-2008
Usage: smsClient_HPUX -s <8-Digit_Mobile_Number> <"Max-160_Characters">
Usage: smsClient_HPUX -f <"Max-160_Characters">


Shinji Teragaito_1
Respected Contributor

Re: EMS Alerts via SMS

It's very easy to launch smsClient_HPUX with some desired
parameters in /tmp/send_sms_script I mentioned in my previous
message.

Shinji