Notifications going to wrong person
Notifications going to wrong person
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?
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
Re: Notifications going to wrong person
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/nagiosBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notifications going to wrong person
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
Re: Notifications going to wrong person
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:
And for thoroughness:
Code: Select all
ls -l /usr/local/nagios/var/objects.cacheRe: Notifications going to wrong person
The items in objects.cache:
anddefine 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
}
[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
Re: Notifications going to wrong person
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.
Edit: Received and placed in our shared support directory.
Re: Notifications going to wrong person
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!
Sorry, I missed that too, they look very similar!
Re: Notifications going to wrong person
ARRGGGGHHHHH!!!!!!
yes.....and, as expected, the yum updates was the only one that had the wrong group....
Thank you for your help
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