Page 1 of 2

Notifications sent to all but one person

Posted: Thu Dec 10, 2015 1:16 pm
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.

Re: Notifications sent to all but one person

Posted: Thu Dec 10, 2015 1:30 pm
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

Re: Notifications sent to all but one person

Posted: Thu Dec 10, 2015 2:05 pm
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?

Re: Notifications sent to all but one person

Posted: Thu Dec 10, 2015 4:28 pm
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".

Re: Notifications sent to all but one person

Posted: Fri Dec 11, 2015 6:59 am
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
        }


Re: Notifications sent to all but one person

Posted: Fri Dec 11, 2015 1:40 pm
by hsmith
Is this consistent behavior?

Re: Notifications sent to all but one person

Posted: Sun Dec 13, 2015 3:40 pm
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%

Re: Notifications sent to all but one person

Posted: Mon Dec 14, 2015 2:26 pm
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?

Re: Notifications sent to all but one person

Posted: Tue Dec 15, 2015 3:30 pm
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.

Re: Notifications sent to all but one person

Posted: Wed Dec 16, 2015 10:28 am
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.