Page 1 of 1
List services using a given plugin
Posted: Tue Nov 06, 2018 10:11 am
by vmesquita
I am doing a Nagios reinstall. To make sure everything is working right, I would like to test each customized plugin with at least one of the servers it is being used, to make sure it's working.
How can I find out which services use a specific command? Maybe some SQL query... Any ideas?
Re: List services using a given plugin
Posted: Tue Nov 06, 2018 11:01 am
by lmiltchev
You could log into Nagios Core interface
click on the "Configuration" link under the "System" menu on the left, select "Object Type = Services", and click on "Continue".
You will be able to see all of your services on the page, the check command they are using, along with the arguments that are passed, check period, notification interval, etc.
Is this what you were looking for?
Re: List services using a given plugin
Posted: Tue Nov 06, 2018 11:24 am
by vmesquita
This is what I wanted however it's not working correctly. It shows 2279 services while we have 5475. The last line in incomplete which suggests it stops enumerating after a certain point
Re: List services using a given plugin
Posted: Tue Nov 06, 2018 12:30 pm
by lmiltchev
I am not aware of any "limit" on this page, and I haven't been able to recreate the issue in-house.
Have you tried filtering the services by service name or a host as a possible "workaround"?
example01.PNG