import error of services
Posted: Mon Sep 14, 2015 10:35 am
Hi team,
I'm continuing to import all the cfg's file from Nagios 3.0.6 to NagiosXI.
Following these steps: commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroups
I got : commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups
Now I'm blocked for the last step: services cfg.
When we import services.cfg for some reasons the import tool do not import correctly all the informations.
Original file contains:
file created by Nagios after "tool-->Import Config Files":
As you can see the host_name line disappeared and the import tool filed with:
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/DB-TEST-CHECKS.cfg', starting on line 997)
Do you have some suggestions?
Regards
Armando
I'm continuing to import all the cfg's file from Nagios 3.0.6 to NagiosXI.
Following these steps: commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups -> servicetemplates -> services -> servicegroups
I got : commands -> timeperiods -> contacttemplates -> contacts -> contactgroups ->
hosttemplates -> hosts -> hostgroups
Now I'm blocked for the last step: services cfg.
When we import services.cfg for some reasons the import tool do not import correctly all the informations.
Original file contains:
Code: Select all
define service {
host_name DB-TEST-CHECKS
service_description TSTTBCDBS01 ASM TNSPING
use tm-s2-service
check_command dbchecks_nrpe!dbchecks_tnsping!tsttbcdbs01_ASM
}Code: Select all
define service {
service_description TSTTBCDBS01 ASM TNSPING
use tm-s2-service
check_command dbchecks_nrpe!dbchecks_tnsping!tsttbcdbs01_ASM
register 1
}Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/DB-TEST-CHECKS.cfg', starting on line 997)
Do you have some suggestions?
Regards
Armando