Nagios stopped sending alerts after rebooting nagios server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
[email protected]
Posts: 8
Joined: Thu Jun 22, 2017 6:08 pm

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by [email protected] »

FYI ,All settings are perfect. We are even getting test alert messages to our phone . But we are not getting automated alerts when host or service goes down
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by tgriep »

We would have to see your System Profile and the output of the commands from my previous post to continue on with the troubleshooting.
You could try this KB article to see if you can resolve the Profile Build Failure.
https://support.nagios.com/kb/article/n ... ailed.html
If this article does not work for you, can you run the following as root and post the output?

Code: Select all

ls -l /usr/local/nagiosxi/var/components/
ls -l /usr/local/nagiosxi/var/components/profile/
If you are using a SMTP server to forward the emails, can you login to it and check the logs to see if they are getting blocked?
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 8
Joined: Thu Jun 22, 2017 6:08 pm

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by [email protected] »

Output of
ls -l /usr/local/nagiosxi/var/components/
ls -l /usr/local/nagiosxi/var/components/profile/

[ec2-user@ip-172-31-21-217 ~]$ ls -l /usr/local/nagiosxi/var/components/
total 20
-rwxrwxr-x 1 apache nagios 25 Nov 23 2016 bpi.log
-rw-r--r-- 1 apache nagios 9440 May 4 09:57 capacityplanning.log
drwxr-sr-x 2 apache nagios 4096 Jun 23 13:15 profile
[ec2-user@ip-172-31-21-217 ~]$ ls -l /usr/local/nagiosxi/var/components/profile/
total 0
-rw-r--r-- 1 apache nagios 0 Jun 23 15:48 profile.txt
[ec2-user@ip-172-31-21-217 ~]$
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by tgriep »

Please run the following commands as root and post the /tmp/info.txt file.

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 8
Joined: Thu Jun 22, 2017 6:08 pm

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by [email protected] »

Out put of first command

[ec2-user@ip-172-31-21-217 ~]$ echo 'select * from xi_users;' | mysql -u root -pnagiosxi nagiosxi -t >/tmp/info.txt
[ec2-user@ip-172-31-21-217 ~]$ cat /tmp/info.txt
+---------+--------------------------------------------+----------------------------------+----------------------+--------------------------------------------+------------------------------------------------------------------+---------+
| user_id | username | password | name | email | backend_ticket | enabled |
+---------+--------------------------------------------+----------------------------------+----------------------+--------------------------------------------+------------------------------------------------------------------+---------+
| 1 | nagiosadmin | 0eb0a38cfbcf77985e4d281b78cc3336 | Nagios Administrator | [email protected] | lr8mq8tm | 1 |
| 2 | [email protected] | 0d57a5971168b9c8aa2cc7abc60aff9f | Naveen | [email protected] | dlnqr96k9v4rua3atav66u3p4lo4gnurajj5ron5mqvi4vpuam4fl66ootr6jn0s | 1 |
| 3 | [email protected] | b96896a1fa505b72a5dccfb615837b35 | Chandra Pedapudi | [email protected] | l3ukpvkco3oerrf6ea9c84oqfqs3rjhgle2ddjo5mggh9ukm7sveuo8bg5cblso8 | 1 |
| 5 | [email protected] | 4978e99307f68bb6346c35291c6f669d | Rajesh Basa | [email protected] | rvtbg6io03iq05bgs452nt7h2otoeiu9hqhut3mt36n4b0h72j7ogd8h557gm3n5 | 1 |
| 7 | [email protected] | 9178b9555df697232cf7344df79b7916 | Chakrapani | [email protected] | qpklp7kteaah8093o490nkggnmh92lipe4e5a02la94f9chuepv3bdi33292korv | 1 |
| 8 | [email protected] | 95b32c5044eeed503f9e81a6e578d915 | Sai Kuppam | [email protected] | 5eidarj653b3i0a64qqonckljjntqhcuut99mpeprmpem4hqrbgin25alr8fbhb9 | 1 |
| 10 | [email protected] | b56e0b4ea4962283bee762525c2d490f | John Anto | [email protected] | 4itldj7sfubojvr2jjhrq58t2j649q6aa0ukj4e2vppiokhc6v5t4aq3st73ncbv | 1 |
+---------+--------------------------------------------+----------------------------------+----------------------+--------------------------------------------+------------------------------------------------------------------+---------+


Attached second command output as info.txt
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios stopped sending alerts after rebooting nagios ser

Post by tgriep »

The settings seem to be correct for the following user accounts.
Nagios Administrator
Naveen
Sai Kuppam
John Anto

These accounts the SMS notifications are not enabled so they will have to login to the server and enable the SMS Notification Method.
Chandra Pedapudi
Rajesh Basa
Chakrapani

Login to the XI GUI and go to the Home > Notification menu and verify that the user's SMS notification was sent when the host or service was down, etc....

If you see the entry that the Notification was sent but never received, login as root to the Nagios server and check this log files for any errors on why it was not sent.
/usr/local/nagiosxi/tmp/phpmailer.log

If you need any help on the errors, post them here.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked