Page 2 of 2
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 1:08 pm
by scottwilkerson
In XI Enterprise Edition you can use the Bulk Modification tool
Configure -> Core Config Manager -> Tools -> Bulk Modifications -> Add a contact
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 1:13 pm
by cunningrat
tmcdonald wrote:That is correct - a service will not inherit contacts from its host. Go ahead and test things out with this new knowledge and let us know how it turns out.
Added the contact name to the service definition, applied the configuration, ran a test, and the notification is still not being sent out.
Updated service definition:
define service {
host_name aix61_test
service_description Errpt log
use generic-service
display_name Errpt log
check_command check_xi_by_ssh!-C "/home/nagios/scripts/ready/check_aix_errpt.pl"!!!!!!!
max_check_attempts 1
flap_detection_enabled 0
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,f,s,
notifications_enabled 1
contacts elliot-page
register 1
}
Ideas?
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 1:23 pm
by sreinhardt
Have you been able to get any notifications or are just the text notifications not working? Are you using an internal smtp server\relay?
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 1:41 pm
by cunningrat
sreinhardt wrote:Have you been able to get any notifications or are just the text notifications not working? Are you using an internal smtp server\relay?
I am able to get email notifications. Email works just fine, the delivery method is NOT the problem, I've tested SMS delivery from within Nagios and the command line both. The problem is that Nagios isn't *sending* the notifications.
An interesting note: when I go to the Advanced tab for a service and send out a custom notification, I get both an email AND a text, even for services which don't have a contact defined. Do custom notifications go out to host contacts as well as service contacts?
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 2:57 pm
by slansing
Where are you defining your mobile device's address? On the contact, or in the user settings, if you are doing it in the user settings, and using the notification handlers defined for a contact that will not work, you will need to add the address of the mobile device (in a fashion such as '
[email protected]') to one of the contact's address lines.
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 3:19 pm
by cunningrat
slansing wrote:Where are you defining your mobile device's address? On the contact, or in the user settings, if you are doing it in the user settings, and using the notification handlers defined for a contact that will not work, you will need to add the address of the mobile device (in a fashion such as '
[email protected]') to one of the contact's address lines.
It's just a contact, not a user. The address of the mobile device (
[email protected]) is in the contact's "Email Address" field.
Re: Notifications not being sent
Posted: Fri Feb 28, 2014 4:48 pm
by 455157
The Enterprise edition has a Bulk Modification tool in the CCM that you could use to add the contact to the services in bulk.
Probably take under a minute to do using that
It's all good, thank you for trying to help! - Slansing
Re: Notifications not being sent
Posted: Mon Mar 03, 2014 10:27 am
by slansing
Just to clear out any questions, can you send an updated configuration for that contact? Like you did the first time?