Could not add object property in file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ibnetworking
Posts: 19
Joined: Mon Jan 16, 2017 4:32 am

Could not add object property in file

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Could not add object property in file

Post 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).
Former Nagios employee
Locked