Import Config Files (Service Templates no working)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ingdsf
Posts: 1
Joined: Tue Aug 04, 2020 11:53 am

Import Config Files (Service Templates no working)

Post by ingdsf »

Hi everyone:

I'm moving from nagios core to NAGIOSXI, importing de cfg file with command xiprepimport.php, the issue is when a try to import Service Templates the result is an empty file or just importing host templates.

Example my .cfg file contains:


define host{
name antivirus-host
use generic-host
check_period 24x7
check_interval 1
retry_interval 1
# first_notification_delay 0
check_command check-host-alive
max_check_attempts 1
notification_period 24x7
notification_interval 0
notification_options d,u,r
contact_groups ANTIVIRUS
register 0
notifications_enabled 1
process_perf_data 1

# flap_detection_enabled 0
# retry_interval 0
# max_check_attempts 1
}
define service{
name antivirus-service
use srv-pnp
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
#failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups ANTIVIRUS
notification_options w,u,c,r
notification_interval 0
notification_period 24x7
register 0
}


the result executing command xiprepimport.cfg is

define host{
name antivirus-host
use generic-host
check_period 24x7
check_interval 1
retry_interval 1
check_command check-host-alive
max_check_attempts 1
notification_period 24x7
notification_interval 0
notification_options d,u,r
contact_groups ANTIVIRUS
register 0
notifications_enabled 1
process_perf_data 1
}


missing service template.

Someone knows why this? or the solution?

Best Regard
Locked