Page 1 of 1

'maintenance' service definition config

Posted: Mon Jan 09, 2017 9:34 am
by veehexx
Hi all,

I've been using Core for a few years now and recently decided to expand and improve on our config.
I'm not really sure what the correct term is, but i would like to know if a test service definition is the correct way of configuring what i desire.

Basically, when we do certain actions with servers or their services, there is typically a bit of testing or additional deployment to do. For example NSClient updates, or copy powershell scripts into the nsclient script folder (we currently deploy this by SCCM to all servers). This results in having to set downtime for the applicable service on each server to avoid email alerts or affecting downtime figures.

The new service directive i configured has email notifications off, but looks like it still marks that service as downtime. it would be an ad-hoc basis that would get pushed to all hosts so configuring a timeperiod def wouldn't really be suitable, and manually setting downtime wouldnt be the quickest/most accurate way.

Is there a way to configure a maintenance definition for short>mid-term testing purposes that will exclude it from both email notifications and automatic downtime?

thanks for any help

Re: 'maintenance' service definition config

Posted: Mon Jan 09, 2017 12:39 pm
by dwhitfield
What version are you using?

4.2.0 had some downtime improvements. I'm wondering if that's what you are looking for: https://github.com/NagiosEnterprises/na ... /Changelog

If you are already on 4.2.4, maybe you could post a screenshot of where you think more downtime options should be. We might need to file a feature request.

Re: 'maintenance' service definition config

Posted: Tue Jan 10, 2017 11:33 am
by veehexx
i'm currently on 4.2.1.
i assumed it'd be something in the templates.cfg, define service section. Maybe something like 'register_downtime 0'.
but from what your saying, no such feature currently exists. I'll have another think about how we're currently configured and if there might be a way by changing my config and get back to you..

Re: 'maintenance' service definition config

Posted: Tue Jan 10, 2017 5:54 pm
by avandemore
Is there a reason you don't just set n in notification_options for the host/service/template?

https://assets.nagios.com/downloads/nag ... ml#service