Apply configuration error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
shaid-comda
Posts: 4
Joined: Thu Jul 09, 2020 3:22 am

Apply configuration error

Post by shaid-comda »

Hi,

need some help on this one: it's what i got after applying configuration

Error: Could not add object property in file '/usr/local/nagios/etc/static/commands.cfg' on line 702

i looked into this directory and didn't find command.cfg file there.

i tried to get back with snapshot and still have the problem.

this is the result i got in /usr/local/nagiosxi/nom/checkpoints/nagioscore

Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Warning: Service 'DHCP' on host 'xxxxxxxx' has a notification interval less than its check interval! Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.
Checked 481 services.
Checked 147 hosts.
Checked 13 host groups.
Checked 1 service groups.
Checked 14 contacts.
Checked 3 contact groups.
Checked 160 commands.
Checked 14 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 147 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 14 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 1
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check


thank you for your help

Eric
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: Apply configuration error

Post by vtrac »

Hi,
Please try this as "root":

Code: Select all

rm -rf /usr/local/nagios/etc/import/*
You might have database crashed, so try this:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Now clean your config files:
Nagios XI GUI > Configure > Core Config Manager > Config File Management
Now, click "Delete Files"
Now, click "Write Configs"
Now, click "Verify Files"
Now, do "Apply Configuration"

If the above steps did not resolve the issue, please upload "profile.zip" file.


Best Regards,
Vinh
Locked