Configuration write failed - Dataset not found - Please help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Configuration write failed - Dataset not found - Please help

Post by mmestnik »

edgeweb
Posts: 28
Joined: Tue Mar 30, 2010 2:25 pm

Re: Configuration write failed - Dataset not found - Please help

Post by edgeweb »

FYI, haven't tried it yet, but on my box I see three files in the static dir: xiobjects.cfg, xitemplates.cfg, xitest.cfg.
edgeweb
Posts: 28
Joined: Tue Mar 30, 2010 2:25 pm

Re: Configuration write failed - Dataset not found - Please help

Post by edgeweb »

Did the delete, but now I get the following in the snapshot log:
Reading configuration data...
Error: Cannot open main configuration file '/usr/local/nagios/etc/nagios.cfg' for reading!
Error processing main config file!

Checking the config manager log, same entries as I had posted before.

Thanks,

Dave
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Configuration write failed - Dataset not found - Please help

Post by mmestnik »

That file, as you may know, is special. It does not contain object data like the others. You can put it back with cpio.

Code: Select all

cpio -i < ../bakup.cpio nagios.cfg
edgeweb
Posts: 28
Joined: Tue Mar 30, 2010 2:25 pm

Re: Configuration write failed - Dataset not found - Please help

Post by edgeweb »

Well, the good news is that it seems the snapshotting system works, as the file does exist, and appears to have the last good state, so the restore isn't needed.

Another test I tried was connecting to the localhost using mysql connecting as the user specified in /var/www/html/nagiosql/config/settings.php (hasn't been changed from the default) and did a select to make sure I can read from the MySQL db ok, and it seems fine.

Dave
Locked