Page 1 of 1
unable to apply config
Posted: Tue Nov 12, 2019 6:25 pm
by clearwaterit
Apply Configuration
Backend login to the Core Config Manager failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Service description missing from list '' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting at line 16)
Error: Could not expand members specified in servicegroup 'CWD' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting at line 16)
Re: unable to apply config
Posted: Wed Nov 13, 2019 8:43 am
by scottwilkerson
Can you go to CCM -> Service Groups and click the "View Config" icon next to one of the groups and post the results here?
Re: unable to apply config
Posted: Wed Nov 13, 2019 10:23 am
by clearwaterit
###############################################################################
#
# Servicegroups configuration file
#
# Created by: Nagios CCM 3.0.3
# Date: 2019-11-13 08:22:50
# Version: Nagios Core 4.x
#
# --- 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 servicegroup {
servicegroup_name service-deadpool
alias Service Deadpool
}
###############################################################################
#
# Servicegroups configuration file
#
# END OF FILE
#
###############################################################################
Re: unable to apply config
Posted: Wed Nov 13, 2019 10:36 am
by scottwilkerson
Can you show the output of the following commands run in sequence
Code: Select all
rm -f /usr/local/nagios/etc/import/*
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh
Re: unable to apply config
Posted: Wed Nov 13, 2019 12:16 pm
by clearwaterit
it ran ok, total warnings: 0 total errors: 0 return code: 0
configuration applied successfully, thanks for your help
Re: unable to apply config
Posted: Wed Nov 13, 2019 12:32 pm
by scottwilkerson
clearwaterit wrote:it ran ok, total warnings: 0 total errors: 0 return code: 0
configuration applied successfully, thanks for your help
Great!
Locking thread