Page 1 of 1

cannot apply configuration on nay new configs

Posted: Mon Mar 29, 2021 4:24 pm
by rnjie
my nagios xi is acting up as i cannot apply any new configurations, i get the erro below
Error: Could not find any host matching 'DXASMPP4' (config file '/usr/local/nagios/etc/services/DXASMPP4.cfg', starting on line 219)
Error: Failed to expand host list 'DXASMPP4' for service 'Swap Usage' (/usr/local/nagios/etc/services/DXASMPP4.cfg:219)

Mind you i have deleted all services and hosts associated with the above error but i still get the error after i run apply configuration, i have also gone through file manager, deleted files, written configs and restarted nagios but i stll get same error, not sure what to do anymore. please see my profile attached

Re: cannot apply configuration on nay new configs

Posted: Mon Mar 29, 2021 4:59 pm
by vtrac
Hi
Please run the repair database script below:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
Now, try the file manager, deleted files, written configs, verify files then Apply Configuration.


Regards,
Vinh

Re: cannot apply configuration on nay new configs

Posted: Tue Mar 30, 2021 2:16 pm
by rnjie
Same error

Re: cannot apply configuration on nay new configs

Posted: Tue Mar 30, 2021 3:04 pm
by scottwilkerson
you have a couple extraneous files that need to be removed

run the following

Code: Select all

rm -f /usr/local/nagios/etc/import/*
then the config should apply or give you an appropriate error

Re: cannot apply configuration on nay new configs

Posted: Tue Mar 30, 2021 4:43 pm
by rnjie
that worked, thanks

Re: cannot apply configuration on nay new configs

Posted: Tue Mar 30, 2021 4:47 pm
by benjaminsmith
Hi,
that worked, thanks
Great! We'll go ahead a close this out, but feel free to open another post if you have any new questions.