Page 1 of 1

Could not add object property in file

Posted: Thu Mar 02, 2017 8:52 am
by ibnetworking
Hi,

so, reconfiguration via GUI does not work.
Following error is thrown:

Error: Invalid host object directive 'var1'.
Error: Could not add object property in file '/usr/local/nagios/etc/hosts/FAKE-NAME-SEVER.cfg' on line 25.

FAKE-NAME-SERVER does not exist any more. We even went ahead and manually removed it from mariadb nagios_objects, to no avail.
It does not exist anywhere except .log files.

Maybe ndo2db? Any ideas?

Btw. when we do reconfigure_nagios.sh from shell, it works fine, only over GUI it fails.

Re: Could not add object property in file

Posted: Thu Mar 02, 2017 12:15 pm
by tmcdonald
ibnetworking wrote:We even went ahead and manually removed it from mariadb nagios_objects, to no avail.
That's not the correct database for object configs, and we strongly discourage direct database manipulation as it can seriously harm the system if not done properly.

Go to Configure -> Core Config Manager, then on the left under Tools click Config File Management (or Write Config Files in earlier versions). Then click Delete, then Write, then Verify and post a screenshot.

Then attach a copy of the config file which it complains about (make sure to censor any sensitive info).