Host notifcations not being sent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Host notifcations not being sent

Post by niebais »

Red Hat Enterprise Linux Server release 7.4 (Maipo)
Nagios XI 5.4.10

We're having an issue where no Host Problem notifications are being sent out. The other emails, such as services, are being sent. I've been through the host template settings (xiwizard_generic_host). It appears to be sending out all notifications and it is set to 24x7 for notification times to be sent out.

I've verified that I can send email directly through the smtp relay settings using a telnet connection to the port and the emails go out fine. I know I have the correct settings in the email settings tab as well.
dwasswa

Re: Host notifcations not being sent

Post by dwasswa »

In the upper right corner of the home page, please click on nagiosadmin (or whatever user you are logged in as) >> Notifications Preferences and send me a snapshot of that page.

I am asking this because under Email tab, you need to make sure that options Host down, Host unreachable etc. is clicked depending on what you want.
Notification-Preferences.PNG
Secondly, on the Host management page for that host under CCM, please make sure you have Notifications enabled is set to on.
HostManagement.PNG
Please see attachments for examples.
You do not have the required permissions to view the files attached to this post.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Host notifcations not being sent

Post by niebais »

This is the template I created by copying xiwizard_generic_host and naming is xiwizard_camera_host
host_template_management.PNG
These are the notification preferences
notification_preferences_1.PNG
For the single host (there are 5000 hosts with the same problem), here is an example of one I changed.
single_host_management.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Host notifcations not being sent

Post by niebais »

Also, as an update, no user gets the host down notifications on all 5000 systems.
kyang

Re: Host notifcations not being sent

Post by kyang »

Anything significant showing in your maillogs?

Code: Select all

tail -50 /var/log/maillog
OR

Since it's SMTP, have you tried debugging?

Code: Select all

tail -50 /usr/local/nagiosxi/tmp/phpmailer.log

When did host notifications stop working?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host notifcations not being sent

Post by lmiltchev »

niebais, what is the check_interval set at for these hosts? Even if you had the notification_interval set at 1 min, the notifications won't go out every 1 min if the check_interval is larger than the notification_interval...

Here's an example from one of my test boxes:

Code: Select all

define host {
	host_name			192.168.18.51
	use				xiwizard_genericnetdevice_host
	address				192.168.18.51
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	contacts			nagiosadmin
	notification_interval		1
	notification_period		xi_timeperiod_24x7
	notifications_enabled		1
	icon_image			network_node.png
	statusmap_image			network_node.png
	_xiwizard			genericnetdevice
	register			1
	}
This hosts is configured with notification_interval = 1 min, but nagios won't be sending a new notifications before it checks if the host (in 5 min) to see if the state changed.

Here's the actual notifications I received:
example01.PNG
As you can see, the notifications are sent every 5 min.

Note: Having said that, I would not recommend setting the check_interval to 1 min for all 5000 hosts! Please review our document on maximizing performance in Nagios XI here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Back to the issue at hand - I have seen similar problems in the past caused by customized notification handlers. Can you post the "xi_host_notification_handler" command, and a "sample" config of a host, along with all relevant contacts, templates, etc.?
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: Host notifcations not being sent

Post by niebais »

Go ahead and close this one down. The main issue found was with the email servers we were working with. Also, the host_notification time was temporarily set to 1 to test the system out and is usually set to 60 or higher.
Locked