disable particular service(s) from script
Posted: Fri Feb 07, 2020 3:53 pm
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
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