Not everybody in a Contact group was notified

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Not everybody in a Contact group was notified

Post by JohnFLi »

ps -ef | grep bin/nagios

Code: Select all

root     14749  8816  0 08:00 pts/0    00:00:00 grep bin/nagios
nagios   30705     1  0 Apr19 ?        00:04:20 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   30707 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30708 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30709 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30710 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30711 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30712 30705  0 Apr19 ?        00:00:21 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30743 30705  0 Apr19 ?        00:00:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
The user has gotten other notifications, so his email address is correct.
Untitled.jpg

Code: Select all

define host {
	host_name			G1VPEXC02
	use				xiwizard_exchange_host
	alias				G1VPEXC02
	display_name			G1VPEXC02
	address				G1VPEXC02
	hostgroups			Virtual,Windows-Servers
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	contact_groups			G1VPEXC0X
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	notes				Exchange Server
	notes_url			
	icon_image			exchange2010.png
	statusmap_image			exchange2010.png
	register			1
	}	

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
Also.... Yesterday, somebody here had mentioned that I should use the generic notify host, of notify service when using SMTP..... So I changed it on mine for testing

Code: Select all

define contact {
	contact_name                  		John Liter
	alias                         		John Ler
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	host_notification_period      		litrj.adm_notification_times
	service_notification_period   		literj.adm_notification_times
	host_notification_options     		d,u,r,f,s,
	service_notification_options  		w,u,c,r,f,s,
	host_notification_commands    		xi_host_notification_handler
	service_notification_commands 		xi_service_notification_handler
	email                         		[email protected]
	pager                         		541-244-XXXX
	use                           		xi_contact_generic
	}	
Did the same changes used for email and texting..... I got the text notifications just fine, but no emails.
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Not everybody in a Contact group was notified

Post by rkennedy »

rkennedy wrote:Let us know how it goes.

Another thing - is what I mentioned above.
I suspect that your contacts are set to use the generic notify-host-by-email or notify-service-by-email, when they need to be using the XI commands, which utilize SMTP.
The email could be getting filtered by the SMS provider, since these will be sending directly from the XI machine, versus how users of XI are utilizing xi_host_notification_handler and xi_service_notification_handler.
I mentioned that you should use the XI handler's not the generic ones if you are using SMTP.

Can you show us the configuration that is working, and one that is not (label them accordingly)? This way we can take a look at the differences between the two. Additionally, do you see them populating under the Notifications tab on your XI home page?
Former Nagios Employee
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Not everybody in a Contact group was notified

Post by JohnFLi »

for other items and events, the user in question does get the emails and and text messages. So looking at how he is setup is not going to help as if he was setup incorrectly, he would never get any messages. Correct??
Everybody is somebody else’s weirdo
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not everybody in a Contact group was notified

Post by lmiltchev »

Does the contact receive an email when you send a custom notification for the "G1VPEXC02" host?

We may need to move this to our ticketing system in order to further troubleshoot the issue. Can you email us your profile (Admin->System Profile->Download Profile) at [email protected]?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Not everybody in a Contact group was notified

Post by JohnFLi »

how do i do

Code: Select all

Does the contact receive an email when you send a custom notification for the "G1VPEXC02" host? 
Everybody is somebody else’s weirdo
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not everybody in a Contact group was notified

Post by lmiltchev »

From the Nagios XI web interface, click on "Host Detail" menu on the left, click on the "G1VPEXC02" host, then go to the "Advanced" tab, and click on "Send custom notification". Select the "Forced" check-box, type a comment, and click "Submit".
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Not everybody in a Contact group was notified

Post by JohnFLi »

ahhhhh......outstanding.

Yes, the contact got both the email and the text message

I will email the profile as you suggested.
Everybody is somebody else’s weirdo
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Not everybody in a Contact group was notified

Post by hsmith »

Waiting on the profile for this one.
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Not everybody in a Contact group was notified

Post by rkennedy »

Closing this out as we're continuing in the ticket.
Former Nagios Employee
Locked