Page 1 of 2

Notify Pager

Posted: Thu Mar 21, 2013 10:28 pm
by asmgiadmin
Please help troubleshoot why no receive SMS alerts

Host

Code: Select all

define host {
	host_name			10.0.0.100
	use				production-host-windows
	alias				Server-Description
	address				10.0.0.100
	register			1
	}
Host Template

Code: Select all

define host {
       name                          		production-host-windows
       alias                         		Production Availability - Windows
       hostgroups                    		production-windows-hosts
       check_command                 		check-host-alive!!!!!!!!
       max_check_attempts            		5
       check_interval                		3
       retry_interval                		1
       active_checks_enabled         		1
       passive_checks_enabled        		1
       check_period                  		24x7
       event_handler_enabled         		1
       flap_detection_enabled        		0
       process_perf_data             		1
       retain_status_information     		1
       retain_nonstatus_information  		1
       contact_groups                		admins,Executive,Helpdesk,Infrastructure-Managers,NOC,Windows
       notification_interval         		30
       notification_period           		24x7
       notification_options          		d,u,r,f,s,
       notifications_enabled         		1
       register                    		0

}
Contact Group

Code: Select all

define contactgroup {
	contactgroup_name             		Windows
	alias                         		Windows Alerts
	}
Contact

Code: Select all

define contact {
	contact_name                  		user1
	alias                         		First Last
	contactgroups                 		Windows
	host_notification_period      		user1_notification_times
	service_notification_period   		user1_notification_times
	host_notification_options     		d,u,r,f,s,
	service_notification_options  		w,u,c,r,f,s,
	host_notification_commands    		xi_host_event_handler,xi_host_notification_handler
	service_notification_commands 		xi_service_event_handler,xi_service_notification_handler
	email                         		[email protected]
	pager                         		1112223333
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	use                           		xi_contact_generic
	}
Contact Template

Code: Select all

define contact {
	name                          		xi_contact_generic
	alias                         		Default XI Contact
	host_notifications_enabled    		1
	service_notifications_enabled 		1
	host_notification_period      		xi_timeperiod_24x7
	service_notification_period   		xi_timeperiod_24x7
	host_notification_options     		d,u,r,f,s,
	service_notification_options  		w,u,c,r,f,s,
	host_notification_commands    		xi_host_event_handler,xi_host_notification_handler
	service_notification_commands 		xi_service_event_handler,xi_service_notification_handler
	register                    		0
	}
From what I understand, XI host / service event / notification handlers send mail using /bin/mail. Messages are received at email address but not pager address. I've tried both 1112223333 and [email protected] (verizon phone).

What controls sending alerts to pager?

Re: Notify Pager

Posted: Fri Mar 22, 2013 6:47 am
by scottwilkerson
Not sure why you have the event_handlers set for the host/service notification commands, but if using the standard xi_host_notification_handler as you are, SMS messages are set by the following per/user

Click username in upper-right corner, go to
Notification Methods -> Mobile Text Tab

Also, under notification preferences you need to enable notifications.

Re: Notify Pager

Posted: Fri Mar 22, 2013 6:55 am
by asmgiadmin
Is there a way to centrally manage for all users?

Re: Notify Pager

Posted: Fri Mar 22, 2013 7:11 am
by scottwilkerson
Not at present, but an Admin can go to Admin-> Manage Users and masquerade as a user to view settings.

Re: Notify Pager

Posted: Fri Mar 22, 2013 8:06 am
by asmgiadmin
Logged in as any admin, I get red box saying XI Notification handlers are not defined for account.

Code: Select all

Nagios XI notification handlers are not defined for this account. XI notification handlers must be defined in the Core Config Manager for customized notification settings.

Re: Notify Pager

Posted: Fri Mar 22, 2013 8:21 am
by asmgiadmin
Got it.

I assumed contact was inheriting handler from template, but it needed specifically defined contact.

Re: Notify Pager

Posted: Fri Mar 22, 2013 8:28 am
by asmgiadmin
How can 25+ users be configured to receive notifications on their mobile? Does admin need to masquerade to each user to assign mobile alerts?

How does contact pager field enter into the equation?

Re: Notify Pager

Posted: Fri Mar 22, 2013 9:54 am
by scottwilkerson
asmgiadmin wrote:How can 25+ users be configured to receive notifications on their mobile? Does admin need to masquerade to each user to assign mobile alerts?
Or the user could set them up themselves.
asmgiadmin wrote:How does contact pager field enter into the equation?
It is there because you COULD setup different commands for contacts than your XI users referencing $CONTACTPAGER$ in the command.

This is also there for historical reasons as it was used in certain setups in the past.

Re: Notify Pager

Posted: Fri Mar 22, 2013 9:55 am
by mguthrie
If you're using the 2012 Enterprise Edition, there is the Admin->Notification management page that allows you to deploy notification settings to a list of users. You can create templates and apply them to different teams if needed.

Re: Notify Pager

Posted: Fri Mar 22, 2013 11:55 am
by BanditBBS
mguthrie wrote:If you're using the 2012 Enterprise Edition, there is the Admin->Notification management page that allows you to deploy notification settings to a list of users. You can create templates and apply them to different teams if needed.
Just be careful using it. There is a bug in the current version. It is fixed for the next release though (hint hint, it's been 6+ weeks)!
http://tracker.nagios.com/view.php?id=368