cannot apply configuration on nay new configs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

cannot apply configuration on nay new configs

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
vtrac
Posts: 903
Joined: Tue Oct 27, 2020 1:35 pm

Re: cannot apply configuration on nay new configs

Post 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
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: cannot apply configuration on nay new configs

Post by rnjie »

Same error
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: cannot apply configuration on nay new configs

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rnjie
Posts: 157
Joined: Wed Mar 20, 2019 4:59 pm

Re: cannot apply configuration on nay new configs

Post by rnjie »

that worked, thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: cannot apply configuration on nay new configs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked