Page 1 of 1
Simple bulk modification question -- remove a service?
Posted: Tue Jan 05, 2016 2:26 pm
by wyoder
Hi, Folks:
We're running Nagios XI 5.2.3 and I've started using the config tools. So now I want something simple--namely, bulk remove the 'check_yum' service from about 30 machines.
That is, remove this guy:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H bit9 -t 30 -c check_yum
OUTPUT: YUM OK: O/S is up to date.
Just this single service. I've been through the Bulk Modifications menus and these instructions:
https://assets.nagios.com/presentations ... ios_XI.pdf
https://vnetwise.wordpress.com/2014/03/ ... onitoring/
https://www.youtube.com/watch?v=3wsLAMR4V2Y
I casually searched this Customer Support forum as well. I'm sure the info is somewhere to be had, but I can't find it.
Help?
--Bill
Re: Simple bulk modification question -- remove a service?
Posted: Tue Jan 05, 2016 4:12 pm
by bwallace
From what I can gather, this cannot be accomplished using the Bulk Modifications tool - the option to remove service(s) there does not exist although one can add service(s).
The next best approach, I believe, is via Configure (tab) --> Core Config Manager--> Services...Click the box in upper left corner then deselect what you want to keep. At the bottom of the page there is a dropdown box which says "With Checked." Here, select delete.
Re: Simple bulk modification question -- remove a service?
Posted: Tue Jan 05, 2016 4:39 pm
by gormank
Maybe I don't understand the problem.
Can you log into Nagios, click configure at the top, click core configuration manager, ckick services at the left, click your check_yum service, click the manage hosts button and remove hosts? You can use ctrl and shift to select multiple hosts. Save and apply the config.
Update now that I understand better... The OP apparently had multiple services defined with the same name, but possibly different parameters, as well as the host.
I create a single service, apply hosts/hostgroups and templates to as much as possible is removed from the service.
I've found this is great in some ways, such as for a service being up/down (no need for flexibility), but less good for things like memory or disk usage where users and management want monitoring, but but want infinite flexibility...
Re: Simple bulk modification question -- remove a service?
Posted: Tue Jan 05, 2016 5:25 pm
by lmiltchev
So now I want something simple--namely, bulk remove the 'check_yum' service from about 30 machines.
If you services are named the same or at least have a common pattern, i.e. "yum" in the name, you can go to the CCM->Services, type "yum" in the "Search" bar and hit Enter.
Note: Don't select any configs form the "Filter by Config Name" drop-down menu. This way, you will search for "yum" in all configs.
Select all of the services that you want to delete, select "Delete" from the "With Checked" drop-down menu on the bottom, and click on "Go" to delete these services. Apply Configuration.
Re: Simple bulk modification question -- remove a service?
Posted: Wed Jan 06, 2016 1:05 pm
by wyoder
Thanks for the suggestions! Using the CCM-->Services approach was straight-forward, instead of the "Bulk Modifications" tool,and lmiltchev's steps were nice 'n' easy to follow. As suspected, the procedure is simple to do, and now I know how.
Best regards,
--Bill
Re: Simple bulk modification question -- remove a service?
Posted: Wed Jan 06, 2016 1:16 pm
by hsmith
Glad to hear it worked. Is there anything else you need help with, or should we close the thread out?
Re: Simple bulk modification question -- remove a service?
Posted: Thu Jan 07, 2016 8:15 am
by wyoder
Yes, please close this thread. I appreciate your support.
Bill Yoder
Re: Simple bulk modification question -- remove a service?
Posted: Thu Jan 07, 2016 10:08 am
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.