unable to apply config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
clearwaterit
Posts: 4
Joined: Thu Sep 22, 2016 11:01 am

unable to apply config

Post 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)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to apply config

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
clearwaterit
Posts: 4
Joined: Thu Sep 22, 2016 11:01 am

Re: unable to apply config

Post 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
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: unable to apply config

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
clearwaterit
Posts: 4
Joined: Thu Sep 22, 2016 11:01 am

Re: unable to apply config

Post by clearwaterit »

it ran ok, total warnings: 0 total errors: 0 return code: 0

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked