No matching service found - showing matching hosts instead.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nithin_p
Posts: 2
Joined: Mon Aug 30, 2021 7:16 am

No matching service found - showing matching hosts instead.

Post by nithin_p »

I have initially installed Nagios® Core™ 4.4.6. on Ubuntu 18.04 and added two hosts (localhost and server A) Then I have installed Nagios XI 5.8.5 and automatically all the services and hosts were migrated to Nagios XI.

Now when I try to add new configuration wizards for eg MongoDB Server, I will get the message "Your configuration changes have been successfully applied and the monitoring engine was restarted." and when I click on "View status details for <host>" I will get the error "No matching services found - showing matching hosts instead." same is the case when adding other wizards.

When I check Configure > Core Configure Manager > Inside Host I can see all the Monitor wizards I added but Inside Home > Host status Summary It's not showing(Here only 2 hosts showing).
Capture.PNG
Capture1.PNG


And I have no errors in recent snapshots.

I attach the file /usr/local/nagios/var/objects.cache
objects_cache.txt
What I am missing??

PS : I am using free version of Nagios XI and I have not exceeded 7 host currently only 2.
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: No matching service found - showing matching hosts inste

Post by pbroste »

Hello @nithin_p

Thanks for reaching out, understand that after migrating we are seeing matching services issues. Want to start off by going through the database repair and then a reindex on CC's. Have a feeling that something between the database and Core Configuration Management is out of place.
[*]Reindex the Core Configuration Manager (CCM) configs[/*]
  • rm -rf /usr/local/nagios/etc/import/*
  • 1: Terminal command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
  • 2: Terminal command -> killall -9 nagios (or pkill nagios)
  • 3: Terminal command check to see if /bin/nagios processes are stopped
  • 4: Restart nagios.service by terminal command: systemctl restart nagios
  • 5: Head over to the Nagios XI web console ==> Core Configuration Manager (CCM) ==> Config File Management ==> [Delete Files] ==> [Write Files] ==> [Verify Files]
  • 6: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"
  • 7: Restart nagios.service by terminal command: systemctl restart nagios
  • [list]
  • Code: Select all

    systemctl restart nagios
[/list]

[*]verify that the host and services look good and verify that there are no errors in core by:[/*]

  • Code: Select all

    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
[/list]


Please let me know how things look,
Perry
nithin_p
Posts: 2
Joined: Mon Aug 30, 2021 7:16 am

Re: No matching service found - showing matching hosts inste

Post by nithin_p »

Hi Perry,

I tried everything as you mentioned but still the same issue.
"No matching services found - showing matching hosts instead." when I tried adding a Mongo DB server
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: No matching service found - showing matching hosts inste

Post by pbroste »

Hello @nithin_p

Thanks for following up, if I understand correctly are unable to get any services stats to show up? or just the MongoDB stats on that host?

Please verify that you are able to monitor other services on your MongoDB host. May need to make sure that security applications like 'SELinux is disabled and verify that the firewall rule is not blocking.

Here is a support document that outlines the configure for MongoDB monitoring:

https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-MongoDB-Database-With-Nagios-XI.pdf

Thanks,
Perry
Locked