Sanity Check No Error But Unable to Apply Configurations

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostest
Posts: 23
Joined: Wed Sep 19, 2012 10:58 pm

Sanity Check No Error But Unable to Apply Configurations

Post by nagiostest »

Running /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Does not give any error. The output is Things look okay - No serious problems were detected during the pre-flight check
However when i try to do some configurations thru the xi interface, the configuration verification fails.
Configuration submitted for processing...
Waiting for configuration verification.......
Configuration verification failed.
Nagios is till able to monitor my services and hosts but i cant do any changes to the configuration using xi interface.
I took a look at the configuration Snapshots and saw that there was 40 over errors. I am very puzzled as to why it doesn't show when i run the sanity check (plus it is able to monitor those hosts that produced the error). Another thing to note : i am able to restart nagios. - doesn't this prove that there isnt any error ? thus it could restart normally?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Sanity Check No Error But Unable to Apply Configurations

Post by scottwilkerson »

this doesn't show in the sanity check, because after you get the failure, XI automatically restored the configuration to the last known good one. and it is that which is used in the sanity check.

From the web UI you can go to Configure -> CCM -> Tools -> Write config files

Work from the top down, fixing errors along the way and ONLY select restart nagios option once there are no errors
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked