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.
Host notifcations not being sent
-
dwasswa
Re: Host notifcations not being sent
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. Secondly, on the Host management page for that host under CCM, please make sure you have Notifications enabled is set to on. Please see attachments for examples.
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. Secondly, on the Host management page for that host under CCM, please make sure you have Notifications enabled is set to on. Please see attachments for examples.
You do not have the required permissions to view the files attached to this post.
Re: Host notifcations not being sent
This is the template I created by copying xiwizard_generic_host and naming is xiwizard_camera_host
These are the notification preferences
For the single host (there are 5000 hosts with the same problem), here is an example of one I changed.
You do not have the required permissions to view the files attached to this post.
Re: Host notifcations not being sent
Also, as an update, no user gets the host down notifications on all 5000 systems.
-
kyang
Re: Host notifcations not being sent
Anything significant showing in your maillogs?
OR
Since it's SMTP, have you tried debugging?
When did host notifications stop working?
Code: Select all
tail -50 /var/log/maillog
Since it's SMTP, have you tried debugging?
Code: Select all
tail -50 /usr/local/nagiosxi/tmp/phpmailer.logWhen did host notifications stop working?
Re: Host notifcations not being sent
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:
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:
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.?
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
}Here's the actual notifications I received:
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!
Re: Host notifcations not being sent
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.