importing service files
Posted: Thu Oct 20, 2016 11:06 am
I am moving a NAGIOS 4 configuration to NAGIOS XI. I have used the import tool and created a new service file.
Device_1.cfg
Once imported I review the services file and find:
/usr/local/nagios/etc/services/Device_1.cfg
This seems to happen on all multi-service files regardless of the type of service.
Thanks in advance for any help.
Device_1.cfg
Code: Select all
define service{
use network-service-ping
host_name Device_1
}
define service{
use check_apc_pdu_alarms
host_name Device_1
}
/usr/local/nagios/etc/services/Device_1.cfg
Code: Select all
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.6.0
# Date: 2016-10-20 11:49:31
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name Device_1
use check_apc_pdu_alarms
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Thanks in advance for any help.