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)
unable to apply config
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to apply config
Can you go to CCM -> Service Groups and click the "View Config" icon next to one of the groups and post the results here?
-
clearwaterit
- Posts: 4
- Joined: Thu Sep 22, 2016 11:01 am
Re: unable to apply config
###############################################################################
#
# 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
#
###############################################################################
#
# 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
#
###############################################################################
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to apply config
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-
clearwaterit
- Posts: 4
- Joined: Thu Sep 22, 2016 11:01 am
Re: unable to apply config
it ran ok, total warnings: 0 total errors: 0 return code: 0
configuration applied successfully, thanks for your help
configuration applied successfully, thanks for your help
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: unable to apply config
Great!clearwaterit wrote:it ran ok, total warnings: 0 total errors: 0 return code: 0
configuration applied successfully, thanks for your help
Locking thread