Page 1 of 1
sms alert
Posted: Wed Jan 15, 2014 1:40 pm
by vinothsethuram
I would like to add sms alert along with email alert. Is there any free sms client available?
Re: sms alert
Posted: Wed Jan 15, 2014 1:49 pm
by slansing
Generally to alert by SMS you either make use of an internal out of band SMS modem, or you send your alerts to <number>@carrier.smsaddress etc, do you know your carriers address to which you would send messages so they can relay them to your mobile devices? Please reference:
http://serverfault.com/questions/164565 ... sms-alerts
Re: sms alert
Posted: Thu Jan 30, 2014 10:32 am
by vinothsethuram
I believe email to sms is applicable for linux machine:
[email protected] i.e.
[email protected].
If send email to
[email protected] from outlook, I am getting sms to my mobile number But if I send sms in command line ( echo “This will go” | mail -s “Hello”
[email protected]), I am not receiving sms.
Do we need to have any libraries for email to sms feature?
Re: sms alert
Posted: Thu Jan 30, 2014 1:45 pm
by vinothsethuram
Jan 30 13:30:35 nagios sendmail[16780]: s0U4SoFQ026298: to=<
[email protected]>, ctladdr=<
[email protected]> (0/0), delay=14:01:45, xdelay=00:00:00, mailer=esmtp, pri=1380525, relay=mymetropcs.nextamh.syniverse.com., dsn=4.0.0, stat=Deferred: Connection timed out with mymetropcs.nextamh.syniverse.com.
Re: sms alert
Posted: Thu Jan 30, 2014 3:38 pm
by tmcdonald
Re: sms alert
Posted: Thu Jan 30, 2014 3:55 pm
by vinothsethuram
Nope. Its not working. I am able to send email only within our network/domain. Not to other email ids.
Re: sms alert
Posted: Thu Jan 30, 2014 5:03 pm
by abrist
Does your server send mail through an smtp relay?
Does you server have an fqdn?
EDIT: Also, try to declare "return" (-r) (from address):
Code: Select all
echo "This will go" | mailx -s "Hello" -r one@address another@address
Make sure both addresses exist. The sms mail relay/gateway may be bouncing your email due to the from address being invalid (like root@localhost etc).
Re: sms alert
Posted: Thu Jan 30, 2014 6:21 pm
by vinothsethuram
Eventhough I specify return and sender email id, I am not getting emails....
Code: Select all
-bash-4.1# hostname --fqdn
nagios.companyname.com
Code: Select all
-bash-4.1# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 nagios.companyname.com ESMTP Sendmail 8.14.4/8.14.4; Thu, 30 Jan 2014 18:16:51 -
0500
Re: sms alert
Posted: Fri Jan 31, 2014 2:42 pm
by sreinhardt
As abrist mentioned, this is likely one of a few things to do with relaying. Specifically either that your local network is not allowing the nagios machine to send out directly via smtp instead of out through your mail server. Additionally, your mail server needs to be configured to allow relaying for external domains, which absolutely is not on by default. The major difference is that when your mail client(outlook) sends mail, it is sent as your user from a trusted source, whereas when nagios sends it, your server does not know if this is spam or something else malicious that is just trying to use your systems to spam other people. My feeling is that relaying to external domains is not allowed on your mail server. This would be pretty easy to test, if nagios also cannot send to gmail\hotmail\yahoo mail, anything like that but is still trying to send via your email server, it is likely being blocked by your mail server. If it does go through, we may have something else going on that we can then look at.
Re: sms alert
Posted: Thu Feb 13, 2014 11:48 am
by vinothsethuram
sreinhardt wrote:As abrist mentioned, this is likely one of a few things to do with relaying. Specifically either that your local network is not allowing the nagios machine to send out directly via smtp instead of out through your mail server. Additionally, your mail server needs to be configured to allow relaying for external domains, which absolutely is not on by default. The major difference is that when your mail client(outlook) sends mail, it is sent as your user from a trusted source, whereas when nagios sends it, your server does not know if this is spam or something else malicious that is just trying to use your systems to spam other people. My feeling is that relaying to external domains is not allowed on your mail server. This would be pretty easy to test, if nagios also cannot send to gmail\hotmail\yahoo mail, anything like that but is still trying to send via your email server, it is likely being blocked by your mail server. If it does go through, we may have something else going on that we can then look at.
Agreed. We configured mailer daemon to send email to external domains. It is working fine now.