NagiosXI Service (Contact Group) Restriction not working
Posted: Thu May 15, 2014 4:31 pm
Hi All,
I'm trying to figure out how to restrict specific services to specific contact groups but it doesn't seem to be working, all contactgroups see all services under "Service Detail" even if I add the restriction.
Version: Nagios XI Version : 2012R2.9
As per the Host (ContactGroup) this is working fine (If I remove the contact group from a HOST the users under that contactgroup no longer see the host), it's only the Service (ContactGroup) which is not working properly.
Below is an example of 1 of my hosts (if I remove engineering or noc) the users under those groups will no longer see the host and none of the services associated to the host (This works fine).
BTW These are (SERVICE TEMPLATES)
SERVICE (With NOC contact group)
SERVICE (This is one without the contact group in this case NOC)
Any help would be greatly appreciated.
I'm trying to figure out how to restrict specific services to specific contact groups but it doesn't seem to be working, all contactgroups see all services under "Service Detail" even if I add the restriction.
Version: Nagios XI Version : 2012R2.9
As per the Host (ContactGroup) this is working fine (If I remove the contact group from a HOST the users under that contactgroup no longer see the host), it's only the Service (ContactGroup) which is not working properly.
Below is an example of 1 of my hosts (if I remove engineering or noc) the users under those groups will no longer see the host and none of the services associated to the host (This works fine).
Code: Select all
define host {
host_name TMB12
use snmptrap_host
alias SERVER3
address 192.168.1.55
hostgroups host
check_command check_dummy!!!!!!!!
max_check_attempts 1
check_interval 1
retry_interval 1
check_period none
contacts nagiosadmin
contact_groups admins,engineering,noc
notification_period none
notifications_enabled 0
register 1
}
BTW These are (SERVICE TEMPLATES)
SERVICE (With NOC contact group)
Code: Select all
define service {
name BypassNotify_service
host_name *
hostgroup_name host
service_description BypassNotify SNMP Traps
servicegroups BypassNotify_servicegroup
use generic-service
check_command check_dummy!!!!!!!!
is_volatile 1
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period xi_timeperiod_24x7
flap_detection_enabled 0
notification_interval 1
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,
notifications_enabled 1
contacts nagiosadmin
contact_groups admins,noc
icon_image snmptrap.png
register 0
}
SERVICE (This is one without the contact group in this case NOC)
Code: Select all
define service {
name upsFailureNotify_service
host_name *
hostgroup_name host
service_description upsFailureNotify SNMP Traps
servicegroups upsFailureNotify_servicegroup
check_command check_dummy!!!!!!!!
is_volatile 1
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 0
passive_checks_enabled 1
check_period xi_timeperiod_24x7
flap_detection_enabled 0
notification_interval 1
notification_period xi_timeperiod_24x7
notification_options w,c,u,r,
notifications_enabled 1
contacts nagiosadmin
contact_groups admins
icon_image snmptrap.png
register 0
}