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).
And I have no errors in recent snapshots.
I attach the file /usr/local/nagios/var/objects.cache
What I am missing??
PS : I am using free version of Nagios XI and I have not exceeded 7 host currently only 2.
No matching service found - showing matching hosts instead.
No matching service found - showing matching hosts instead.
You do not have the required permissions to view the files attached to this post.
Re: No matching service found - showing matching hosts inste
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.
[*]verify that the host and services look good and verify that there are no errors in core by:[/*]
Please let me know how things look,
Perry
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.
- run through the database repair. [list]
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
- 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
[*]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
Please let me know how things look,
Perry
Re: No matching service found - showing matching hosts inste
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
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
Re: No matching service found - showing matching hosts inste
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
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