SMS (text message) notification is not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

SMS (text message) notification is not working

Post 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!
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: SMS (text message) notification is not working

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: SMS (text message) notification is not working

Post 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.
Former Nagios Employee
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: SMS (text message) notification is not working

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SMS (text message) notification is not working

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: SMS (text message) notification is not working

Post by caterpillartce »

It got fixed by switching to SMTP and using IP address for SMTP host. Thanks for the help! this can be closed.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: SMS (text message) notification is not working

Post by lmiltchev »

Great! Locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked