Nagios XI not Actually Sending Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Nagios XI not Actually Sending Notifications

Post by rbuckle »

So if i choose send test, i received the alerts in both my phone and email.

I made sure that Alerts was enabled for my account and that the device should be alerting... i just get nothing... Nagios itself say that the device is down and critical, it just stopped sending them out one day this week?

Any Thoughts?
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios XI not Actually Sending Notifications

Post by tmcdonald »

If you go to Home -> Notifications and search for that host, does anything show up? You might need to adjust the time period settings to search back a bit.
Former Nagios employee
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI not Actually Sending Notifications

Post by rbuckle »

There is a list of 4,585 records that i didn't receive lol. (well 300/400 I should have received since the notifications were turned back on) and yes i was receiving notifications when i first turned them back on.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI not Actually Sending Notifications

Post by lmiltchev »

Are you using Sendmail or SMTP? Who is not receiving notifications - nagiosadmin, another xi user, "contact only", no one?

Have you reviewed our notification troubleshooting tips on the Nagios Support Knowledgebase?
https://support.nagios.com/kb/article.php?id=36

Do you see any errors/bounced emails in the mail log?

Code: Select all

tail -100 /var/log/maillog
tail -100 /usr/local/nagiosxi/tmp/phpmailer.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI not Actually Sending Notifications

Post by rbuckle »

Nagiosadmin is an unused account, i have a separate account setup and none of the accounts are receiving the notifications.

I am using smtp via my companies email server, i have checked its mailbox and there is nothing in the email box regarding Nagios.

The send email and send text and all of the manual stuff seems to work and the notifications are received, but acknowledgements and alerts do not.

I am indeed baffled.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI not Actually Sending Notifications

Post by rkennedy »

Looks like we'll have to do some digging. A couple things -

- For reference, can you post a screenshot of your Mange Email Settings page?
- Are you able to see any kind of logs on the SMTP server that show if XI has been sending the emails through there?
Former Nagios Employee
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI not Actually Sending Notifications

Post by rbuckle »

It seems to work fine, clicking on Test and the email is received.

Image
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI not Actually Sending Notifications

Post by rbuckle »

The attach file might help you debug some of my issues

https://dl.dropboxusercontent.com/u/710 ... agios/root
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI not Actually Sending Notifications

Post by rkennedy »

Just had to verify. Thanks for that. Let's go ahead and make change to your xi_host_notification_handler and xi_service_notification_handler command, we're going to have it output to /tmp/notif.txt

To the end of both commands, add the following -

Code: Select all

 2>&1 | tee /tmp/notif.txt
Then apply configuration.

Let it run for a bit of time so that the logs can generate, and post it back here.

I've attached a screenshot as an example as well.
You do not have the required permissions to view the files attached to this post.
Former Nagios Employee
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagios XI not Actually Sending Notifications

Post by rbuckle »

o entry for terminal type "unknown";
using dumb terminal settings.
SQL: SQL Error [nagiosxi] :</b> Table './nagiosxi/xi_events' is marked as crashed and should be repaired
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
Locked