disable services

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
yurs
Posts: 2
Joined: Thu Sep 10, 2015 3:32 am

disable services

Post by yurs »

how can I disable check some of the services from nagios monitoring, without nagios stopping?

Tnks
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: disable services

Post 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.
Former Nagios Employee.
me.
yurs
Posts: 2
Joined: Thu Sep 10, 2015 3:32 am

Re: disable services

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: disable services

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: disable services

Post 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
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: disable services

Post 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.
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: disable services

Post by eloyd »

You're welcome.

@tm: Too bad this is after 2pm. :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: disable services

Post by hsmith »

yurs,

Did this work out for you, or is there something we can do to further assist you?
Former Nagios Employee.
me.
Locked