Notifications going to wrong person

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

Notifications going to wrong person

Post by JohnFLi »

I have a service on a host that has been sending out notifications....which is fine..... but it has been sending them to the wrong person.

For the notification, instead of having it go to a certain person, it goes to a contact group that I made in XI.
I that group, I have 2 people (Adam and Andrew) {yes, they are setup as contacts in Nagios as well}
Yet Nagios is only sending alerts to Darryl and only to him.

When I look at the host configuration with the Core insterface, it only shows the Contact group, as I would expect.



Any ideas?
Everybody is somebody else’s weirdo
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notifications going to wrong person

Post by lmiltchev »

Can you show us the configs of the service, the contactgroup that is assigned to it, and both contacts (Adam and Andrew)? Did you check to see if you have a multiple instances of nagios running? Please, show us the output of the following command:

Code: Select all

ps -ef | grep bin/nagios
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: Notifications going to wrong person

Post by JohnFLi »

The attached document is a handfull of screenshots that shows that there are anybody listed as a direct contact. The groupcontact info. etc. if you need more, let me know.

Code: Select all

[root@G1VPPCINAG ~]# ps -ef | grep bin/nagios
nagios   30367     1  0 Sep29 ?        00:00:23 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   30369 30367  0 Sep29 ?        00:00:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30370 30367  0 Sep29 ?        00:00:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30371 30367  0 Sep29 ?        00:00:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30372 30367  0 Sep29 ?        00:00:01 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios   30395 30367  0 Sep29 ?        00:00:02 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root     30845 30807  0 07:51 pts/1    00:00:00 grep bin/nagios
[root@G1VPPCINAG ~]#

Code: Select all

define service {
        host_name                       G1VPWEBPCIDB01
        service_description             Yum Updates
        use                             xiwizard_nrpe_service
        check_command                   check_nrpe!check_yum!!!!!!!
        max_check_attempts              5
        check_interval                  5
        retry_interval                  1
        check_period                    xi_timeperiod_24x7
        notification_interval           60
        notification_period             xi_timeperiod_24x7
        contact_groups                  G1VPECMWEB01
        _xiwizard                       linux-server
        register                        1
        }
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notifications going to wrong person

Post by ssax »

Open up your /usr/local/nagios/var/objects.cache file and search for the service and post what it has configured in there, also if the service looks ok in there you should check out the contactgroup as well.

And for thoroughness:

Code: Select all

ls -l /usr/local/nagios/var/objects.cache
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Notifications going to wrong person

Post by JohnFLi »

The items in objects.cache:
define contactgroup {
contactgroup_name G1VPWEBPCIDB01
alias G1VPWEBPCIDB01
members Andrew Sampels_TXT,Andrew Sampels,Adam Inscore_TXT,Adam Inscore
}


define service {
host_name G1VPWEBPCIDB01
service_description Yum Updates
check_period xi_timeperiod_24x7
check_command check_nrpe!check_yum!!!!!!!
contact_groups G1VPECMWEB01
notification_period xi_timeperiod_24x7
initial_state o
importance 0
check_interval 5.000000
retry_interval 1.000000
max_check_attempts 5
is_volatile 0
parallelize_check 1
active_checks_enabled 1
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options a
freshness_threshold 0
check_freshness 0
notification_options a
notifications_enabled 1
notification_interval 60.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
_XIWIZARD linux-server
}
and
[root@G1VPPCINAG var]# ls -l /usr/local/nagios/var/objects.cache
-rw-r--r-- 1 nagios nagios 183242 Sep 29 16:16 /usr/local/nagios/var/objects.cache
[root@G1VPPCINAG var]#
Everybody is somebody else’s weirdo
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notifications going to wrong person

Post by ssax »

Please PM me a copy of your profile, you can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner.

Edit: Received and placed in our shared support directory.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Notifications going to wrong person

Post by JohnFLi »

PM has been sent
Everybody is somebody else’s weirdo
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Notifications going to wrong person

Post by ssax »

Ah, I see, you have G1VPECMWEB01 selected as the contactgroup on the services, not G1VPWEBPCIDB01, you will need to change the contact group on the services to G1VPWEBPCIDB01.

Sorry, I missed that too, they look very similar!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Notifications going to wrong person

Post by JohnFLi »

ARRGGGGHHHHH!!!!!!


yes.....and, as expected, the yum updates was the only one that had the wrong group....

Thank you for your help
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: Notifications going to wrong person

Post by hsmith »

Is this working for you now?
Former Nagios Employee.
me.
Locked