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
Filtering
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Filtering
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
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
Thanks
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Filtering
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
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?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Filtering
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
Thanks. We're all good with it. Please close this tread.