Issue for unable apply configuration from nagiosxi
Posted: Wed Sep 23, 2015 8:06 am
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
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