Hi support,
I need to deactivate many service (~7000) recently.
Is there a faster way to do this?
(I checked the forum, you guys said there is no api for this so far.)
Or, (unfortunately) I have to toggle all of them, one by one?
Looking for a faster way to deactivate services
-
dsynapalos
- Posts: 23
- Joined: Tue Jun 25, 2019 2:26 am
Re: Looking for a faster way to deactivate services
I will second the need for automated service deactivation.
If I recall correctly there had been a ticket request for such an implementation.
Would be lovely to have a timetable or at least be notified if such a method is developed.
Cheers.
If I recall correctly there had been a ticket request for such an implementation.
Would be lovely to have a timetable or at least be notified if such a method is developed.
Cheers.
Re: Looking for a faster way to deactivate services
We cannot provide an ETA for feature requests, however you should be able to deactivate these services in the CCM without the need to "toggle all of them, one by one". There is a Toggle All Checkboxes check-box on the top. It may take a long time to display all results on the page, but you could display, let's say a 1000 results per page, select all objects, then With checked = Deactivate, and click on Go. Do this 7 times, apply configuration, and you are done. It would take less time to do this, then to use the REST API, even if we had this functionality available at the moment.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Looking for a faster way to deactivate services
Hi,
Yes I know the "select all" box.
Sorry for not providing details.
I can't deactivate "all service" on "a host".
Here's problem:
There many host on Nagios XI. And there are some (not all) services on "every host" need to be deactivated.
Let's say, we are monitoring 500 switches.
Each host has 24 ports, scanned by the switch monitoring wizard.
So there will be 48 services (Port status/bandwidth) on a host.
I want to deactivate 1/3 port on each switch because these port won't use anymore, and everyone wants no critical services shown on XI.
In this case, I need to deactivate 48*500/3 = 8000 services.
I will keep deactivating these services these days due to tight schedule.
If you have a other solutions such as:
option 1: A faster way to delete these services (give up trying deactivation)
option 2: A better way for showing no critical services
...
Please let me know.
Thank for help!!
Yes I know the "select all" box.
Sorry for not providing details.
I can't deactivate "all service" on "a host".
Here's problem:
There many host on Nagios XI. And there are some (not all) services on "every host" need to be deactivated.
Let's say, we are monitoring 500 switches.
Each host has 24 ports, scanned by the switch monitoring wizard.
So there will be 48 services (Port status/bandwidth) on a host.
I want to deactivate 1/3 port on each switch because these port won't use anymore, and everyone wants no critical services shown on XI.
In this case, I need to deactivate 48*500/3 = 8000 services.
I will keep deactivating these services these days due to tight schedule.
If you have a other solutions such as:
option 1: A faster way to delete these services (give up trying deactivation)
option 2: A better way for showing no critical services
...
Please let me know.
Thank for help!!
Re: Looking for a faster way to deactivate services
Deleting services would take the same time as deactivating them, so if I were you, I would just deactivate them (just in case you need to activate them in the future). In any case, you need to know which services you need to deactivate on each switch... Are most of them named the same? You could use the "Search" bar under the CCM to find them. For example, you could search for a keyword, e.g. "Port x" on a specific host (selected from the "Config Name" drop-down menu) or on ALL hosts (if no config is selected from the drop-down menu). After you view your selection, you would need to determine whether you have to select some of the services for deactivation or all of them (by clicking on "Toggle All Checkboxes"), before deactivation.option 1: A faster way to delete these services (give up trying deactivation)
Nagios XI will show you when there is a problem, e.g. critical services... It's what it is designed to do. You could view services that are only in OK state by filtering the results (records shown on the page), but I don't think this is what you want to do. To me, it sounds like "I know there is a problem, but I don't want to see it".option 2: A better way for showing no critical services
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Looking for a faster way to deactivate services
Yes, I will try this method - deactivate those same-name ports first.
---
I know, I just described a scene, which is often occurred, specially on switch ports - if some ports are not connected but maybe they will be in the future, the users would ask us "why not just make them disappear from critical list?"
For me, there are 2 options.
1. Mark those services with an acknowledgement. This would let them be a handled state. I think this is a better way to manage states. But there are still red lights, some users can't stand up with it.
2. so, I am deactivating them now.
If there is anything that I missed or misunderstood, please let me know.
(Looking forward to having some api for deactivation. This can do something like - auto-deactivate services while finding their critical duration are greater than 14 days.)
Or, please help me lock this post.
Thanks!
---
I know, I just described a scene, which is often occurred, specially on switch ports - if some ports are not connected but maybe they will be in the future, the users would ask us "why not just make them disappear from critical list?"
For me, there are 2 options.
1. Mark those services with an acknowledgement. This would let them be a handled state. I think this is a better way to manage states. But there are still red lights, some users can't stand up with it.
2. so, I am deactivating them now.
If there is anything that I missed or misunderstood, please let me know.
(Looking forward to having some api for deactivation. This can do something like - auto-deactivate services while finding their critical duration are greater than 14 days.)
Or, please help me lock this post.
Thanks!
Re: Looking for a faster way to deactivate services
Actually, if you wanted to delete or deactivate services automatically, after they have been in a critical state for more than 14 days, you could do this with the deadpool in Nagios XI.(Looking forward to having some api for deactivation. This can do something like - auto-deactivate services while finding their critical duration are greater than 14 days.)
Read more about deadpool here:Admin > Monitoring Config > Deadpool Settings
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Looking for a faster way to deactivate services
Pratical tool!!
I'll try it.
I'll try it.
Re: Looking for a faster way to deactivate services
Sounds good! Let us know if your question has been answered and if it is OK to close this topic. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!