Page 1 of 2

Paging to my phone not working for alert

Posted: Tue Jun 27, 2017 2:19 pm
by wspackaging
Paging to my phone stopped working for some unknown reason.

From the nagios xi web interface click on my user in the upper right corner and send a test email and page and that works. I get the email and the page.
Alerts send emails but not pages to my phone.

Obviously the pager emails < 9 digit@cellcomany > is set correctly or the test page would not work. Any idea why the alert pages stopped or what log I should be looking at to see what is failing?

I'm on Nagios XI version 5.4.2 on redhat linux 6.8.
Planning an upgrade Nagios to 5.4.6 tomorrow. Not sure that will fix anything.
please advise

-pete

Re: Paging to my phone not working for alert

Posted: Tue Jun 27, 2017 4:15 pm
by dwhitfield
Please post a screenshot of http://YOURSERVER/nagiosxi/admin/mailsettings.php

Also, please send the appropriate log for whatever box is checked on that page (sendmail vs smtp)

Can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

Re: Paging to my phone not working for alert

Posted: Wed Jun 28, 2017 8:16 am
by wspackaging
Screen shot and system profile attached.

Re: Paging to my phone not working for alert

Posted: Wed Jun 28, 2017 8:17 am
by wspackaging
Screen shot didn't seem to attach with the profile.
trying again

Re: Paging to my phone not working for alert

Posted: Wed Jun 28, 2017 11:21 am
by dwhitfield
You'll need to check that box for the phpmailer logging. Force something that should send. Then attach the phpmailer.log.

Also, I don't see a profile anywhere.

UPDATE: Files received and shared with techs.

Re: Paging to my phone not working for alert

Posted: Wed Jun 28, 2017 2:49 pm
by wspackaging
Files have been PM'ed to you.

Re: Paging to my phone not working for alert

Posted: Thu Jun 29, 2017 9:33 am
by tgriep
What is the username that you are trying to get the Cell phone setup to receive emails?
Can you login to the XI GUI and click on the username in the top right corner.
Then click of the Notification Preferences and the Notification Methods menus and verify that the settings are correct under the Mobile Text tab.

Please run the following commands as root and PM the /tmp/info.txt file back to me.

Code: Select all

echo 'select * from xi_users;' | mysql -u root -pnagiosxi nagiosxi -t >/tmp/info.txt
echo 'select * from xi_usermeta;' | mysql -u root -pnagiosxi nagiosxi -t >>/tmp/info.txt

Re: Paging to my phone not working for alert

Posted: Sun Jul 02, 2017 8:18 am
by wspackaging
When I use the XI GUI and go to my user ID in the upper right. I am able to send a test page and email and it works as expected. So, I know the pager setting are correct.

I get an error when I the commands you sent.

[root@dc1ux086 ~]# echo 'select * from xi_users;' | mysql -u root -pnagiosxi nagiosxi -t >/tmp/info.txt
ERROR 1049 (42000): Unknown database 'nagiosxi'
[root@dc1ux086 ~]# echo 'select * from xi_usermeta;' | mysql -u root -pnagiosxi nagiosxi -t >>/tmp/info.txt
ERROR 1049 (42000): Unknown database 'nagiosxi'

Re: Paging to my phone not working for alert

Posted: Wed Jul 05, 2017 9:40 am
by tgriep
What is the name of the user account that is not receiving the SMS Texts?

I posted the commands for the MYSQL database but your system is using the Postgres database so you will have to run these commands instead and post the info.txt.

Code: Select all

echo 'select * from xi_users;' | psql nagiosxi nagiosxi >/tmp/info.txt
echo 'select * from xi_usermeta;' | psql nagiosxi nagiosxi >>/tmp/info.txt

Re: Paging to my phone not working for alert

Posted: Thu Jul 27, 2017 1:50 pm
by wspackaging
Paging has started working again.
It ended up being an Exchange issue.
I'm not sure what was changed to make it start working again.

closing this forum entry.
-pete