Error: Could not find any host matching and failed to expand

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
acwong
Posts: 10
Joined: Tue Sep 10, 2019 4:01 pm

Error: Could not find any host matching and failed to expand

Post by acwong »

I'm trying to run the SNMP wizard tool on NagiosXi and get a Configuration verification failed. When I check the configuration snapshot, I get the following below:

View Command Output:

Code: Select all

Reading configuration data...
   Read main config file okay...
Error: Could not find any host matching 
   Error processing object config files!
Please help. Thank you!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Error: Could not find any host matching and failed to ex

Post by benjaminsmith »

Hello,

It looks like you have an error in the configuration files, and this maybe causing the wizard to fail when it is completing.

There are two sides to configurations in Nagios XI. One is the configuration settings stored in the database, and the text based configuration files used by Nagios Core.

If you go to Configure > CCM > Monitoring > Hosts and then search for this host ( ip address ) from the searchbox in the upper right. Does it exists? If not, you'll need to remove this from the purestorage service.

Next go to Config File Management ( Tools menu) and go through the following steps:

1. Delete Files
2. Write Files
3. Verify Files -- If you get an error, correct this in the CCM and then repeat steps 1 and 2 until it passes.
4. Restart Nagios Core and then try running the wizard again.
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!
acwong
Posts: 10
Joined: Tue Sep 10, 2019 4:01 pm

Re: Error: Could not find any host matching and failed to ex

Post by acwong »

That worked.
I did have that host and ran through the steps and I still received the same error. I then removed the host and related services and went through the steps again and no errors!

Thank you!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Error: Could not find any host matching and failed to ex

Post by benjaminsmith »

Hello,
That worked.
I did have that host and ran through the steps and I still received the same error. I then removed the host and related services and went through the steps again and no errors!

Thank you!
Happy to hear it's been resolved. Also, as requested, I removed the IP address from the log you posted.
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