I found a strange issue confusing me in notification. We need critical alerts to be sent to pager for some hosts when they are down. But if there is problem with services on those hosts, critical alerts will only be sent to email. However, whenever there is critical issue on those services, our pager still gets alerts. I am not sure why Nagios XI behaves like this. If this is not a bug, how can I fix it?
Thanks
Hai
notification issue in Nagios XI
Re: notification issue in Nagios XI
btw, our Nagios XI version is 2011R3.2
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: notification issue in Nagios XI
post your configuration definitions for us to look at.
more than likely, you'll need to setup two contacts and run it that way to diverse the critical/warning.
more than likely, you'll need to setup two contacts and run it that way to diverse the critical/warning.
Re: notification issue in Nagios XI
IT_support_pager is our pager and unixadmins is our email.
host configuration:
define host {
host_name ftpsprod.pa.parsonsvic.com
use windows-server
alias Windows FTP PROD server
address 172.22.81.23
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
contacts IT_support_pager
contact_groups unixadmins
notification_period 24x7
notification_options d,u,r,f
notifications_enabled 1
register 1
}
service configuration:
define service {
host_name ftpsprod.pa.parsonsvic.com,ftpstest.pa.parsonsvic.com
service_description check ftps Certificate expiration_windows
use local-service
check_command check_certificate_ftps!2121!!!!!!!
max_check_attempts 1
check_interval 720
retry_interval 1
check_period 24x7
notification_interval 1440
notification_period 24x7
notification_options w,u,r,c
notifications_enabled 1
contact_groups unixadmins
register 1
}
contacts.cfg:
define contact {
contact_name IT_support_pager
alias ITsupport pager - Mission Critical
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r
service_notification_options u,c
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email <pager_number>@pager.bellmobility.ca
pager <pager_number>@pager.bellmobility.ca
}
contactgroups.cfg
define contactgroup {
contactgroup_name unixadmins
alias unixadmins
members hqin
}
host configuration:
define host {
host_name ftpsprod.pa.parsonsvic.com
use windows-server
alias Windows FTP PROD server
address 172.22.81.23
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
contacts IT_support_pager
contact_groups unixadmins
notification_period 24x7
notification_options d,u,r,f
notifications_enabled 1
register 1
}
service configuration:
define service {
host_name ftpsprod.pa.parsonsvic.com,ftpstest.pa.parsonsvic.com
service_description check ftps Certificate expiration_windows
use local-service
check_command check_certificate_ftps!2121!!!!!!!
max_check_attempts 1
check_interval 720
retry_interval 1
check_period 24x7
notification_interval 1440
notification_period 24x7
notification_options w,u,r,c
notifications_enabled 1
contact_groups unixadmins
register 1
}
contacts.cfg:
define contact {
contact_name IT_support_pager
alias ITsupport pager - Mission Critical
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r
service_notification_options u,c
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
email <pager_number>@pager.bellmobility.ca
pager <pager_number>@pager.bellmobility.ca
}
contactgroups.cfg
define contactgroup {
contactgroup_name unixadmins
alias unixadmins
members hqin
}
Re: notification issue in Nagios XI
Can you open the following file on the XI server, find that service and post the config here?
The objects.cache will have the running config for that service and we can see if it is loading the settings from the flat files correctly.
Code: Select all
/usr/local/nagios/var/objects.cacheBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: notification issue in Nagios XI
File attached
Re: notification issue in Nagios XI
For some reason, the file did not get attached, can you try posting it again?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: notification issue in Nagios XI
Changed extension to txt. Now it works.
You do not have the required permissions to view the files attached to this post.
Re: notification issue in Nagios XI
I could not find this service in the objects.cache file from your previous post.
"check ftps Certificate expiration_windows"
Was it deleted?
Is there another service check you want us to look at?
If so, what is the name of it?
Can you login to the Nagios server as root, run the following and post the output?
Thanks
"check ftps Certificate expiration_windows"
Was it deleted?
Is there another service check you want us to look at?
If so, what is the name of it?
Can you login to the Nagios server as root, run the following and post the output?
Code: Select all
ps -ef --cols=300Be sure to check out our Knowledgebase for helpful articles and solutions!