Page 1 of 1
SMS (text message) notification is not working
Posted: Thu Aug 11, 2016 4:07 pm
by caterpillartce
Hello,
I followed this document
https://assets.nagios.com/downloads/nag ... ios-XI.pdf and tried multiple phone numbers/carriers (ATT, TMOBILE, SPRINT) and the test text message was never received.
Email alert works fine.
Is there anything I should check/try in order to make text notification work?
Thanks!
Re: SMS (text message) notification is not working
Posted: Thu Aug 11, 2016 4:25 pm
by caterpillartce
And if I manually send an email (using my email system) to the "email-to-text" address, it works fine. It is just not sending that text from Nagios.
Re: SMS (text message) notification is not working
Posted: Thu Aug 11, 2016 4:49 pm
by rkennedy
Are you using SMTP, or sendmail to send your notifications?
If it's SMTP, please post your /usr/local/nagiosxi/tmp/phpmailer.log file for us to look at, and if sendmail then post your /var/log/maillog file. Sometimes carriers will filter how the mail gets sent exactly.
Re: SMS (text message) notification is not working
Posted: Thu Aug 11, 2016 5:20 pm
by caterpillartce
Thanks for the reply! I am using sendmail and got a bunch of errors like this in my maillog:
Aug 11 17:28:19 Nagiosservername postfix/smtp[23926]: connect to alt1.gmr-smtp-in.l.google.com[173.194.68.14]:25: Connection timed out
Aug 11 17:28:19 Nagiosservername postfix/smtp[23926]: connect to alt2.gmr-smtp-in.l.google.com[2607:f8b0:400c:c0a::e]:25: Network is unreachable
It is basically the same time out and unreachable errors for all the numbers/carriers I tried.
Thanks!
Re: SMS (text message) notification is not working
Posted: Fri Aug 12, 2016 10:43 am
by lmiltchev
Go to the following pages, and show us screenshots of each page:
Admin->Manage Mobile Carriers
Click on the username in the upper right corner, click on "Notification Preferences"->Mobile Text (SMS)
Click on the username in the upper right corner, click on "Notification Methods"->Mobile Text (SMS)
Click on a host that your user is added to as a monitoring contact, go to the "Advanced" tab, and click on "Send custom notification" under "Commands". Did you receive SMS?
Re: SMS (text message) notification is not working
Posted: Fri Aug 12, 2016 1:26 pm
by caterpillartce
It got fixed by switching to SMTP and using IP address for SMTP host. Thanks for the help! this can be closed.
Re: SMS (text message) notification is not working
Posted: Fri Aug 12, 2016 1:51 pm
by lmiltchev
Great! Locking the thread.