NagiosXI Service Template Inheritance
Posted: Thu Apr 17, 2014 1:04 am
Hi All,
I created the service beforehand and just created the Hostgroup, Servicegroup, Host and Service Template and applied it to an existing service and host. When changing the parameters on the "Service Template" it's not changing the associated Service. After reading more on the cause it seems to be related to the "Register" value which needs to be 0 and not 1 but I cannot figure out how to change this value as the config file under "/usr/local/nagios/etc/services" is getting changed back as per NagiosQL as per the big warning when opening the file.
--------------------
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
--------------------
Below is the service:
Any help would be greatly appreciated.
Sincerely,
Michael
I created the service beforehand and just created the Hostgroup, Servicegroup, Host and Service Template and applied it to an existing service and host. When changing the parameters on the "Service Template" it's not changing the associated Service. After reading more on the cause it seems to be related to the "Register" value which needs to be 0 and not 1 but I cannot figure out how to change this value as the config file under "/usr/local/nagios/etc/services" is getting changed back as per NagiosQL as per the big warning when opening the file.
--------------------
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
--------------------
Below is the service:
Code: Select all
define service {
host_name 20098
service_description upsFailureNotify
use upsFailureNotify_service
servicegroups upsFailureNotify_servicegroup
is_volatile 1
max_check_attempts 1
check_interval 1
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 1
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts nagiosadmin
stalking_options o,w,c,u,
icon_image snmptrap.png
_xiwizard snmp_trap
[b]register 1[/b]
}
Sincerely,
Michael