lmiltchev wrote:WillemDH is correct. Open the "/usr/local/nagios/var/objects.cache" file in a text editor, find the "Uptime" service, and see what is the contact group that is used. Add the "dummy" contactgroup to the service, open the "/usr/local/nagios/var/objects.cache", and check again. Now, the "dummy" contactgroup should be used, instead of the one, inherited from the host.
Yes the actual config in the /usr/local/nagios/var/objects.cache is different than the one I can see from web interface. See below:
I don't have any contact defined for this service from nagios console but I do have the contact group dlitserverteam defined there but in this file it shows the contact as dlitserverteam and contact groups ServerTeam which looks like inherited from the host. How do I fix this issue.
All I want is receive notification in dlitserverteam group not the ServerTeam group.
define service {
host_name atp-elvprocess3.<OUR DOMAIN>
service_description Uptime
display_name SNMP Uptime
check_period xi_timeperiod_24x7
check_command check_snmp_uptime!!!!!!!!
contacts dlitserverteam
contact_groups ServerTeam
notification_period xi_timeperiod_24x7
initial_state o
check_interval 1.000000
retry_interval 1.000000
max_check_attempts 1
is_volatile 0
parallelize_check 1
active_checks_enabled 1
passive_checks_enabled 1
obsess_over_service 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options o,w,u,c
freshness_threshold 0
check_freshness 0
notification_options u,w,c,r,f,s
notifications_enabled 1
notification_interval 60.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
failure_prediction_enabled 1
retain_status_information 1
retain_nonstatus_information 1
_XIWIZARD linuxsnmp
}
Let me know what I need to change to fix this issue.