Notifications not being sent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notifications not being sent

Post by scottwilkerson »

In XI Enterprise Edition you can use the Bulk Modification tool
Configure -> Core Config Manager -> Tools -> Bulk Modifications -> Add a contact
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cunningrat
Posts: 29
Joined: Mon Nov 18, 2013 5:51 pm

Re: Notifications not being sent

Post 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?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Notifications not being sent

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
cunningrat
Posts: 29
Joined: Mon Nov 18, 2013 5:51 pm

Re: Notifications not being sent

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notifications not being sent

Post 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.
cunningrat
Posts: 29
Joined: Mon Nov 18, 2013 5:51 pm

Re: Notifications not being sent

Post 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.
455157
Posts: 51
Joined: Mon Sep 10, 2012 7:35 pm

Re: Notifications not being sent

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notifications not being sent

Post by slansing »

Just to clear out any questions, can you send an updated configuration for that contact? Like you did the first time?
Locked