Notifications sent to all but one person

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Notifications sent to all but one person

Post by jkinning »

I had a user contact me stating they received the notification that the system was ok but never received the alert that there was a problem. The user was jgettelf and I can see that Nagios sent out the OK but not the DOWN for this user.
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: Notifications sent to all but one person

Post by tgriep »

Does that user receive notifications for other host and services when they go down?
Can you go in to Core Config Manager > Contacts for that user, copy the settings for that user by clicking on the Floppy Icon and post the settings here?
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notifications sent to all but one person

Post by jkinning »

Code: Select all

define contact {
	contact_name                  		jgettelf
	alias                         		Joe Gettelfinger
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	host_notification_period      		jgettelf_notification_times
	service_notification_period   		jgettelf_notification_times
	host_notification_options     		d,u,r
	service_notification_options  		c,r,s
	email                         		[email protected]
	use                           		xi_contact_generic
	}	
Did you just need this for the user?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notifications sent to all but one person

Post by lmiltchev »

Does that user receive notifications for other host and services when they go down?
Check to see if you have multiple instances of nagios running:

Code: Select all

ps -ef | grep bin/nagios
Also, verity the "host_notification_options" options for "jgettelf" in the "/usr/local/nagios/var/objects.cache".

If you are using ram disk, the path could be different, i.e. "/var/nagiosramdisk/objects.cache".
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notifications sent to all but one person

Post by jkinning »

Code: Select all

 ps -ef | grep bin/nagios
root     32868 27599  0 06:57 pts/0    00:00:00 grep bin/nagios
nagios   33984     1  4 Dec10 ?        00:44:29 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   33986 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33987 33984  0 Dec10 ?        00:00:53 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33988 33984  0 Dec10 ?        00:00:52 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33989 33984  0 Dec10 ?        00:00:48 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33990 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33991 33984  0 Dec10 ?        00:00:51 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33992 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33993 33984  0 Dec10 ?        00:00:51 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33994 33984  0 Dec10 ?        00:00:51 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33995 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33996 33984  0 Dec10 ?        00:00:51 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33997 33984  0 Dec10 ?        00:00:52 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33998 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   33999 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34000 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34001 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34002 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34003 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34004 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34005 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34006 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34007 33984  0 Dec10 ?        00:00:50 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34008 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34009 33984  0 Dec10 ?        00:00:49 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   34054 33984  0 Dec10 ?        00:00:05 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
Not using ramdisk

Code: Select all

define timeperiod {
        timeperiod_name jgettelf_notification_times
        alias   Notification Times for jgettelf
        sunday  00:00-23:59
        monday  00:00-23:59
        tuesday 00:00-23:59
        wednesday       00:00-23:59
        thursday        00:00-23:59
        friday  00:00-23:59
        saturday        00:00-23:59
        }

define contact {
        contact_name    jgettelf
        alias   Joe Gettelfinger
        service_notification_period     jgettelf_notification_times
        host_notification_period        jgettelf_notification_times
        service_notification_options    r,c,s
        host_notification_options       r,d,u
        service_notification_commands   xi_service_notification_handler
        host_notification_commands      xi_host_notification_handler
        email   [email protected]
        minimum_importance      0
        host_notifications_enabled      1
        service_notifications_enabled   1
        can_submit_commands     1
        retain_status_information       1
        retain_nonstatus_information    1
        }

User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Notifications sent to all but one person

Post by hsmith »

Is this consistent behavior?
Former Nagios Employee.
me.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notifications sent to all but one person

Post by jkinning »

I don't know we don't usually have this notifications get fired off. I would say no but I am no 100%
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Notifications sent to all but one person

Post by tgriep »

Does that user receive notifications for other host and services when they go down?
In the Nagios XI GUI, can you select that host from the Home > Host Details screen, click on the Advanced tab and Send a custom notification and see if that user receives it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Notifications sent to all but one person

Post by jkinning »

You can close this. I spoke to the user and he had custom notification times. Apparently you can't have notification times for email and a different notification time for SMS? Could this be submitted as a feature request if it isn't already?

It would be nice to get email notifications 24x7 but only get SMS notifications during off hours 1800-0600 or something like that.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notifications sent to all but one person

Post by ssax »

Ok, thanks for the update.

You could technically achieve that by creating two users per contact, one for email with 24x7 timeperiod and one for sms with custom timeperiod.
Locked