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
Simple bulk modification question -- remove a service?
Re: Simple bulk modification question -- remove a service?
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.
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Simple bulk modification question -- remove a service?
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...
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...
Last edited by gormank on Wed Jan 06, 2016 8:20 pm, edited 1 time in total.
Re: Simple bulk modification question -- remove a service?
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.So now I want something simple--namely, bulk remove the 'check_yum' service from about 30 machines.
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Simple bulk modification question -- remove a service?
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
Best regards,
--Bill
Re: Simple bulk modification question -- remove a service?
Glad to hear it worked. Is there anything else you need help with, or should we close the thread out?
Former Nagios Employee.
me.
me.
Re: Simple bulk modification question -- remove a service?
Yes, please close this thread. I appreciate your support.
Bill Yoder
Bill Yoder
Re: Simple bulk modification question -- remove a service?
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!