Page 1 of 1

disable particular service(s) from script

Posted: Fri Feb 07, 2020 3:53 pm
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

Re: disable particular service(s) from script

Posted: Mon Feb 10, 2020 6:08 pm
by Box293

Re: disable particular service(s) from script

Posted: Mon Feb 10, 2020 6:11 pm
by vvz
thank you

we can close the thread