disable particular service(s) from script

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

disable particular service(s) from script

Post by vvz »

Hi!

I want to automate some servers (software servers, not physical ones) restarting process on my machines (bash script will be used). These servers under Nagios supervision and have correlated Nagios services. The servers restarting process itself takes about 3 minutes and I need to disable correlated Nagios services from script and enable them later on. Using NSCA to monitor servers.
I've seen bash script example how to disable ALL services for the particular host. Is it possible to disable/enable only particular services in script?

thank you
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: disable particular service(s) from script

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: disable particular service(s) from script

Post by vvz »

thank you

we can close the thread
Locked