Page 1 of 1

disable services

Posted: Thu Sep 10, 2015 3:56 am
by yurs
how can I disable check some of the services from nagios monitoring, without nagios stopping?

Tnks

Re: disable services

Posted: Thu Sep 10, 2015 9:45 am
by hsmith
yurs wrote:how can I disable check some of the services from nagios monitoring, without nagios stopping?

Tnks

Do you want to stop them forever, or just stop them for a short period of time? If you just want to stop them temporarily, there is a button on the service information screen.

Re: disable services

Posted: Fri Sep 11, 2015 1:58 am
by yurs
hsmith wrote:
yurs wrote:how can I disable check some of the services from nagios monitoring, without nagios stopping?

Tnks

Do you want to stop them forever, or just stop them for a short period of time? If you just want to stop them temporarily, there is a button on the service information screen.
I want to stop them temporily (for example only 200 services, total list 2-3 k). We must update our monitoring scriptes for this services and i can't completly stop nagios. How i can do this from CLI or with some scripte ? I know about service information screen but it's not convenient for us. Tnk's

Re: disable services

Posted: Fri Sep 11, 2015 11:37 am
by tgriep
You could deactivate them, do your changes and reactivate them when you are done. Would this work for you?
To deactivate, go to Configure > Core Config Manager > Services, select the services you want to deactivate, on the bottom of the screen is a pull down menu called With Checked, select Deactivate and click the Go button.
Apply the configuration and those services will not be checked.
Try that out and let us know if it works for you.

Re: disable services

Posted: Fri Sep 11, 2015 1:59 pm
by eloyd
Without knowing why you want to do this, you could also schedule downtime for the host. This way, no notifications are performed during the downtime, and Nagios will basically ignore the state of the checks until things are back.

Information is available at https://assets.nagios.com/downloads/nag ... ntime.html

Re: disable services

Posted: Fri Sep 11, 2015 2:03 pm
by hsmith
eloyd wrote:Without knowing why you want to do this, you could also schedule downtime for the host. This way, no notifications are performed during the downtime, and Nagios will basically ignore the state of the checks until things are back.

Information is available at https://assets.nagios.com/downloads/nag ... ntime.html
Thanks, Eric.

Re: disable services

Posted: Fri Sep 11, 2015 2:09 pm
by eloyd
You're welcome.

@tm: Too bad this is after 2pm. :)

Re: disable services

Posted: Mon Sep 14, 2015 9:04 am
by hsmith
yurs,

Did this work out for you, or is there something we can do to further assist you?