Page 1 of 1

NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 12:49 pm
by Mitchell
Hey ,

we have a requirement to send the nagios log server alert as SMS ( text messages ) to respective person cell number , is there any option to do that in NLS , please can you suggest how we can do this

Thanks,
Ramesh

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 1:06 pm
by cdienger
You can use these email to text addresses:

Alltel - %number%@message.alltel.com
AT&T - %number%@txt.att.net
Cingular - %number%@cingularme.com
Metro PCS - %number%@mymetropcs.com
Nextel - %number%@messaging.nextel.com
Powertel - %number%@ptel.net
Sprint - %number%@messaging.sprintpcs.com
SunCom - %number%@tms.suncom.com
T-Mobile - %number%@tmomail.net
US Cellular - %number%@email.uscc.net
Verizon - %number%@vtext.com
Virgin Mobile - %number%@vmobl.com

where %number% is the phone number of the recipient.

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 1:34 pm
by Mitchell
where do we need to define these addresses ? under User management ?

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 2:13 pm
by cdienger
Correct. And if you're not using a SMTP server already, you'll want to change your mail settings to use one under Administration > General > Mail Settings.

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 3:57 pm
by Mitchell
Thanks, but this mechanism depends on mail server being up , what is the solution for not depending on mail server in other words if our mail server goes down and some services are critical in NLS we should get SMS alert

is there anyway to configure SMS alert separately not depending on SMTP server ?

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 4:02 pm
by mcapra
You could use a 3rd party script to send the text message rather than leveraging the native email notifications. The Alerts you configure should have multiple methods for response mechanisms; It doesn't have to be email exclusively. This documentation covers your options for how Nagios Log Server responds to alerts:
https://assets.nagios.com/downloads/nag ... Server.pdf

If it were me, I'd set up a Twilio account or some sort of SMS modem to be responsible for notifications. Then everything isn't reliant on your mail server functioning. I don't think you'll find documentation specific to Nagios Log Server for setting that up, though. You'd likely need to write the script yourself.

Re: NLS alert via SMS ( text message )

Posted: Thu Jun 15, 2017 4:33 pm
by dwhitfield
Thanks @mcapra!

Re: NLS alert via SMS ( text message )

Posted: Mon Jun 19, 2017 4:41 pm
by Mitchell
Thanks foe the info @mcapra
do we have any sample 3rd party script to send the text message for nagios log server ?
this method ( execute script ) to send the text message doesn't rely on mail server ?

Re: NLS alert via SMS ( text message )

Posted: Mon Jun 19, 2017 4:51 pm
by dwhitfield
The script itself is not what bypasses email, this is:
mcapra wrote: If it were me, I'd set up a Twilio account or some sort of SMS modem to be responsible for notifications. Then everything isn't reliant on your mail server functioning.
I do not believe we have a script. User contributions usually go on http://exchange.nagios.com