Page 1 of 1

Filtering

Posted: Mon Jan 29, 2018 11:01 am
by tonkaUser
Hi,

We on-board network devices that have a lot of ports. Some ports are not used. When we finish using wizard, Nagios discovers which ports are down. That's legitimate. I want to get to a view that would allow me to filter all services that are in warning/critical with ability to deactivate them? How can I do it.
I went to CCM->Services but it does not have a column for the last status check.

Thanks

Re: Filtering

Posted: Mon Jan 29, 2018 2:46 pm
by dwhitfield
There is not a way to do that at this time without two screens (or a print off of the down). Brace yourself, better CCM integration is coming: https://www.nagios.com/roadmaps/

Re: Filtering

Posted: Mon Jan 29, 2018 2:50 pm
by tonkaUser
Can you suggest if there is API in Nagios that would allow to do something like this: get a list of all failed services, if the host matches some string then disable the service.

Thanks

Re: Filtering

Posted: Mon Jan 29, 2018 3:06 pm
by dwhitfield
All of the API functions are at http://YOURSERVER/nagiosxi/help/ . If it isn't there, then it doesn't exist in the current version. We are working to improve the API and the plan is to have complete feature parity with the UI. I do not know when the fully functional API would be available, but certainly not before XI 6.0:

Re: Filtering

Posted: Mon Jan 29, 2018 3:39 pm
by tonkaUser
Thanks. There's an API to create a service not to deactivate it. If I try to create an existing object but with disabled notification, would that overwrite the existing service for that host?

Re: Filtering

Posted: Mon Jan 29, 2018 3:50 pm
by dwhitfield
Yes. One thing that trips people up sometimes is the apply config will fail if you don't have a full service/host entry. However, you can use the force flag to modify. The danger of not doing a full recreation is that you could have errors, but at this time there isn't a modify option.

Re: Filtering

Posted: Tue Jan 30, 2018 12:06 pm
by tonkaUser
Thanks. We're all good with it. Please close this tread.