No notifications going out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

No notifications going out

Post by cwscribner »

Hi all.

So I've had notifications disabled since the fresh install of XI. As a result, I've just discovered this problem which is very unfortunate as the box just moved into production mode. I can't get any test notifications to go out and I'm not quite sure where the problem lies. mailx and sendmail are both installed and will send mail on the command line.
Last edited by cwscribner on Fri Nov 11, 2011 1:38 pm, edited 1 time in total.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: No notifications going out

Post by mguthrie »

We did locate a bug in 1.7 on some systems that failed to set the XI User's notification preferences to "enabled." Can you check to see if your contacts have the custom variables "host_notifications_enabled"= 1 and "service_notifications_enabled"=1.

Are you experiencing the failure with the "Send Test Email" page, or with the actual host and service notifications?
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: No notifications going out

Post by cwscribner »

The nagiosadmin contact has everything enabled. In the contacts.cfg file, it has host_notifications_enabled=1.

Neither the test nor the actual notifications go out.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No notifications going out

Post by lmiltchev »

It is very strange. Even if your Notifications are disabled globally, you should be able to send a test e-mail. Do you know of any changes with your mail server?

Create a simple text file in your "/tmp" folder and name it "test.txt". Then run in terminal:

Code: Select all

# /usr/lib/sendmail -v <your_email_address> < /tmp/test.txt
Check your e-mail to see if you received the test.txt.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: No notifications going out

Post by cwscribner »

I do receive the test.txt via command line. To my knowledge, nothing has been changed in terms of mail capabilities for the Xi server. I would think that the hangup is between XI and sendmail since commandline works but test notifications do not.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No notifications going out

Post by lmiltchev »

Maybe you've already been through this, but just in case...

Go to: Configure->More Options->My Account Settings

Under "Account Information" -> Try changing the e-mail address and test it again

Under "Notification Preferences" -> Double check if Notifications are enabled, check Notification Types/Times

Under "Notification Methods" -> Make sure Email is selected

Also, you can open your "php.ini" (/etc/php.ini) file and double check all of the entries associated with mail. There may be something misconfigured there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: No notifications going out

Post by cwscribner »

Interesting...I changed the admin email to my own and I received the test notification. I changed it back to the original email but I haven't heard back from the owner as to whether or not he received the test email after my changes.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No notifications going out

Post by lmiltchev »

Maybe he/she should check the spam folder... :D It happened to me before.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: No notifications going out

Post by cwscribner »

No such luck. He hasn't received any notifications. My company email provider is GMail. Would that make a difference if the original admin email was hosted internally? Would looking for a block in the network be the next logical step?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: No notifications going out

Post by mguthrie »

Can you post the contact definition from the contacts.cfg file?
Locked