Page 1 of 1

Alarm sms notification has stopped working

Posted: Tue Mar 08, 2022 10:01 am
by dslaughter
My sms alarm notification has stopped working. I can still send a test sms from user menu and it is successful. When looking at logs it looks like the test uses a FQDN and the real alarm notification is not using the FQDN. I have mail logs and profile I can send via private message.

Re: Alarm sms notification has stopped working

Posted: Thu Mar 10, 2022 1:28 pm
by pbroste
Hello @dslaughter

Thanks for reaching out, understand that you have collected the logs and System Profile and want to also get the following:

Please go to Admin > Manage Email Settings:
- Make sure Logging is checked
- Click the Update Settings button

Then run this tail command as root (and leave it running):

Code: Select all

tail -Fn0 /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log /var/log/httpd/error_log /var/log/httpd/ssl_error_log >> /tmp/results.txt
And

Code: Select all

journalctl -u postfix -f >> /tmp/postfix.txt
You can break these two commands when you have completed the sending on test SMS messages.

Then masquerade as one of them that isn't receiving the verification code. After masquerading enter this in your address bar and hit enter to resend the verification code:
- Change YOURXISERVER

Code: Select all

http://YOURXISERVER/nagiosxi/account/notifymethods.php?sendkey=1
Then PM me the full output from the still running tail command after about 30 seconds have passed.

PM me a copy of your profile.zip as well, you can download it from Admin > System Profile by clicking the Download Profile button.

Thanks,
Perry

Re: Alarm sms notification has stopped working

Posted: Mon Mar 14, 2022 7:42 am
by dslaughter
It looks like AT&T were blocking the real alarms. The test alert always worked. Using the test I received email and sms but if a real alarm came in I only got the email.

Why would the test deliver and the real alarm fail? I can send the logs I have if you think it will help find the difference between the test and real alarm sms.

I sent the profile in my snmp question if you want to go over it.

Re: Alarm sms notification has stopped working

Posted: Thu Mar 17, 2022 2:34 pm
by pbroste
Hello @dslaughter

Thanks for following up, good to know that the test SMS works. We see that from the previous System Profile that was sent over that the service check was executed but 'No message to process'. Want to do some further checking into this:

Example:
SERVICE CHECK -> Host Name: 'nagiosxi-da1', Service Description: 'DA1 rantcellSMSTest', Return Code: '0', Output: 'No messages to process'
Want to get the Eventman and cmdsys logs so we can see what is going on:

Code: Select all

tar -czvf /tmp/eventlogs.tar.gz /usr/loca/nagiosxi/var/ /var/log/messages/ /var/log/syslog /usr/local/nagios/var/*.log
Please send over the '/tmp/eventlogs.tar.gz' via Private Message.

Thanks,
Perry

p.s.
We're moving to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Re: Alarm sms notification has stopped working

Posted: Thu Mar 17, 2022 3:04 pm
by pbroste
dslaughter wrote:It looks like AT&T were blocking the real alarms. The test alert always worked. Using the test I received email and sms but if a real alarm came in I only got the email.

Why would the test deliver and the real alarm fail? I can send the logs I have if you think it will help find the difference between the test and real alarm sms.

I sent the profile in my snmp question if you want to go over it.
Wondering if does not recognize the "contact" or phone number that it is coming from and is getting blocked. Are they the same contact/phone number from the test message versus the alert?

Thanks,
Perry

Re: Alarm sms notification has stopped working

Posted: Wed Mar 23, 2022 6:42 pm
by dslaughter
Sorry for late reply. I was unexpectedly out for several days. I'll gather the information and send tomorrow.

Re: Alarm sms notification has stopped working

Posted: Thu Mar 24, 2022 9:43 am
by pbroste
Excellent @dslaughter will wait for further response,

Thanks,
Perry

Re: Alarm sms notification has stopped working

Posted: Thu Mar 31, 2022 4:04 pm
by dslaughter
Sorry for the late reply. Go ahead and close this topic. If I experience this problem again I'll secure the logs.

Re: Alarm sms notification has stopped working

Posted: Thu Mar 31, 2022 4:22 pm
by pbroste
Thanks for following up @dslaughter

Closing ticket

Regards,
Perry