notification issue in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

notification issue in Nagios XI

Post 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
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: notification issue in Nagios XI

Post by hqin »

btw, our Nagios XI version is 2011R3.2
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: notification issue in Nagios XI

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: notification issue in Nagios XI

Post by tmcdonald »

Thanks for the assist, @tacolover101!
Former Nagios employee
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: notification issue in Nagios XI

Post 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
}
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: notification issue in Nagios XI

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: notification issue in Nagios XI

Post by hqin »

File attached
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: notification issue in Nagios XI

Post by tgriep »

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!
hqin
Posts: 28
Joined: Thu Oct 11, 2012 8:16 am

Re: notification issue in Nagios XI

Post by hqin »

Changed extension to txt. Now it works.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: notification issue in Nagios XI

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked