Page 1 of 2

notification issue in Nagios XI

Posted: Mon May 29, 2017 10:40 am
by hqin
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

Re: notification issue in Nagios XI

Posted: Mon May 29, 2017 10:52 am
by hqin
btw, our Nagios XI version is 2011R3.2

Re: notification issue in Nagios XI

Posted: Tue May 30, 2017 8:57 am
by tacolover101
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.

Re: notification issue in Nagios XI

Posted: Tue May 30, 2017 10:59 am
by tmcdonald
Thanks for the assist, @tacolover101!

Re: notification issue in Nagios XI

Posted: Tue May 30, 2017 1:56 pm
by hqin
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
}

Re: notification issue in Nagios XI

Posted: Tue May 30, 2017 4:59 pm
by tgriep
Can you open the following file on the XI server, find that service and post the config here?

Code: Select all

/usr/local/nagios/var/objects.cache
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.

Re: notification issue in Nagios XI

Posted: Wed May 31, 2017 1:13 pm
by hqin
File attached

Re: notification issue in Nagios XI

Posted: Wed May 31, 2017 1:16 pm
by tgriep
For some reason, the file did not get attached, can you try posting it again?

Re: notification issue in Nagios XI

Posted: Wed May 31, 2017 1:19 pm
by hqin
Changed extension to txt. Now it works.

Re: notification issue in Nagios XI

Posted: Wed May 31, 2017 1:48 pm
by tgriep
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?

Code: Select all

ps -ef --cols=300
Thanks