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!
SMS (text message) notification is not working
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
Re: SMS (text message) notification is not working
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
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.
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
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!
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
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?
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
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
Great! Locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!