Service template errors while running XI import procedure
Posted: Mon Jun 09, 2014 12:21 pm
I am having a problem with several service definitions when trying to import the templates file into XI.
I believe it has to do with the illegal characters in the "action_url" string, particularly the leading ../../
I am not sure what this is trying to do or how to direct the service in XI. Any help would be appreciated.
Here is the definition:
# Generic service definition template 5 minute interval
define service {
name generic-service-5
action_url ../../pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
active_checks_enabled 1
check_freshness 0
check_interval 5
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 1
is_volatile 0
max_check_attempts 3
notes $_SERVICEHTMLOPEN$ Service Priority: $_SERVICEDOC_PRIORITY$ $_SERVICEHTMLBREAK$ Tech Contact: $_SERVICEDOC_TECHCONTACT$ $_SERVICEHTMLCLOSE$
notes_url http://confluence.jeppesen.com/display/TSS/Home
notification_interval 60
notification_options w,u,c,r
notification_period 24x7
notifications_enabled 1
obsess_over_service 1
passive_checks_enabled 1
process_perf_data 1
register 0
retain_nonstatus_information 1
retain_status_information 1
retry_interval 2
_DOC_PRIORITY 5
_DOC_TECHCONTACT Not Identified
_HTMLBREAK <br>
_HTMLCLOSE </p>
_HTMLOPEN <p align=left>
}
I believe it has to do with the illegal characters in the "action_url" string, particularly the leading ../../
I am not sure what this is trying to do or how to direct the service in XI. Any help would be appreciated.
Here is the definition:
# Generic service definition template 5 minute interval
define service {
name generic-service-5
action_url ../../pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
active_checks_enabled 1
check_freshness 0
check_interval 5
check_period 24x7
event_handler_enabled 1
flap_detection_enabled 1
is_volatile 0
max_check_attempts 3
notes $_SERVICEHTMLOPEN$ Service Priority: $_SERVICEDOC_PRIORITY$ $_SERVICEHTMLBREAK$ Tech Contact: $_SERVICEDOC_TECHCONTACT$ $_SERVICEHTMLCLOSE$
notes_url http://confluence.jeppesen.com/display/TSS/Home
notification_interval 60
notification_options w,u,c,r
notification_period 24x7
notifications_enabled 1
obsess_over_service 1
passive_checks_enabled 1
process_perf_data 1
register 0
retain_nonstatus_information 1
retain_status_information 1
retry_interval 2
_DOC_PRIORITY 5
_DOC_TECHCONTACT Not Identified
_HTMLBREAK <br>
_HTMLCLOSE </p>
_HTMLOPEN <p align=left>
}