Hi,
I hit a problem from "applying configuration" even I restore the configuration file from previous "monitoring configuration snapshots".
The action I taken can shown as below:
1. I click the restore icon and click "ok" for restore the NagiosQL database.
Date Snapshot Result File Actions
2015-09-23 16:45:02 Config Ok 1442997902.tar.gz
2. click "apply configuration" but error prompt as below
Applying Configuration
Command submitted for processing...
! Waiting for configuration verification....
! 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.
Below is the info. for "show config changes"
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Messages form "show errors"
Error: Error: Could not find any host matching '172.16.32.58' (config file '/usr/local/nagios/etc/services/172.16.32.58.cfg', starting on line 168)
Error: Failed to expand host list '172.16.32.58' for service 'System Log Critical Errors' (/usr/local/nagios/etc/services/172.16.32.58.cfg:168)
At this moment, we cannot add new host or service in nagiosxi, even modify and edit service and host. Could you have any idea for solving this problem and any idea to prevent this problem happening again?
thanks,
Mel
Issue for unable apply configuration from nagiosxi
Re: Issue for unable apply configuration from nagiosxi
What is the version of Nagios XI that you are currently using? Are you using a SSL or a proxy? Have you changed any of the DB passwords?
Run the following commands:
Then also run the following command to begin capturing log output:
Attempt to Apply Configuration from the web interface. After the browser has returned some output to the screen, press Ctrl+c to stop the log tail, and post the cmd.txt file and the reconfig.txt that was generated in the "/tmp" directory by the above instructions.
Run the following commands:
Code: Select all
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> /tmp/reconfig.txt
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> /tmp/cmd.txtBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Issue for unable apply configuration from nagiosxi
Thanks for your help. Issue resolve after I copy the file /usr/local/nagios/bin/nrpe from the other server.
my error logs below,
Sep 28 10:49:49 ******** xinetd[53800]: Server /usr/local/nagios/bin/nrpe is not executable [file=/etc/xinetd.d/nrpe] [line=11]
Sep 28 10:49:49 ******** xinetd[53800]: Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/nrpe] [line=11]
Thanks,
Mel
my error logs below,
Sep 28 10:49:49 ******** xinetd[53800]: Server /usr/local/nagios/bin/nrpe is not executable [file=/etc/xinetd.d/nrpe] [line=11]
Sep 28 10:49:49 ******** xinetd[53800]: Error parsing attribute server - DISABLING SERVICE [file=/etc/xinetd.d/nrpe] [line=11]
Thanks,
Mel
Re: Issue for unable apply configuration from nagiosxi
Issue resolved : by changing CCM password to default welcome
Re: Issue for unable apply configuration from nagiosxi
Great! In this case, I will be locking this topic and will be marking it as "resolved". If you have any other issues/questions, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!