Page 1 of 1

send notification service to non listed person

Posted: Sun Dec 04, 2016 2:20 am
by paltel
hi
I have a problem in notification by Email, the notification Received to person that not contain in the list that must received to him,
I tried to delete the host then added it again but the same problem the notification received to him :o :o :o :o

Re: send notification service to non listed person

Posted: Mon Dec 05, 2016 10:40 am
by mcapra
Are you able to share a full system profile? You should be able to upload it as an attachment to your forum post. You can gather a system profile via Admin -> System Profile -> Download Profile.

My suspicion is that this user may be part of an included contact group, but a profile will help provide some additional information.

Re: send notification service to non listed person

Posted: Mon Dec 05, 2016 10:54 am
by bwallace
In addition to mcapra's post, I noticed that the notification type the your email screenshot is a RECOVERY notification. I don't think these types of notifications are enabled be default or, these users haven't chosen to be notified on RECOVERY.

You can check by going to:
Contact view config.jpg
When you click the 'view config' button you'll see all the notification options that are enabled for each user. Use the following to verify these contacts are to receive notifications on recoveries:

host_notification_options :

This directive is used to determine when notifications for the host should be sent out. Valid options are a combination of one or more of the following:
d = send notifications on a DOWN state,
u = send notifications on an UNREACHABLE state,
r = send notifications on recoveries (OK state),
f = send notifications when the host starts and stops flapping, and
s = send notifications when scheduled downtime starts and ends.
If you do not specify any notification options, Nagios will assume that you want notifications to be sent out for all possible states.

Example: If you specify d,r in this field, notifications will only be sent out when the host goes DOWN and when it recovers from a DOWN state.



service_notification_options

This directive is used to determine when notifications for the service should be sent out. Valid options are a combination of one or more of the following:

w = send notifications on a WARNING state,
u = send notifications on an UNKNOWN state,
c = send notifications on a CRITICAL state,
r = send notifications on recoveries (OK state),
f = send notifications when the service starts and stops flapping, and
s = send notifications when scheduled downtime starts and ends.

If you do not specify any notification options, Nagios will assume that you want notifications to be sent out for all possible states.

Example: If you specify w,r in this field, notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state.

Re: send notification service to non listed person

Posted: Tue Dec 06, 2016 1:47 am
by paltel
mcapra wrote:Are you able to share a full system profile? You should be able to upload it as an attachment to your forum post. You can gather a system profile via Admin -> System Profile -> Download Profile.

My suspicion is that this user may be part of an included contact group, but a profile will help provide some additional information.
thanks for replay
kindly find the system profile in attached file

BR

Re: send notification service to non listed person

Posted: Tue Dec 06, 2016 1:52 pm
by lmiltchev
You have some crashed tables in the DB...

Code: Select all

...
161206  8:40:01 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_notifications' is marked as crashed and should be repaired
...
Let's start with repairing the database - run:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
then check the mysqld.log to make sure you don't have any more errors:

Code: Select all

tail /var/log/mysqld.log
Next, stop/start services:

Code: Select all

service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start
Let us know if this solved your issue.