Page 1 of 1

Nagios time based monitoring

Posted: Sat Feb 19, 2011 4:22 pm
by SirLouen
It is possible to monitor remote host, based on times?

For example, I have some servers, that are technically impossible for me to put them up in case of failure on weekends. I don't actually mind if they are off during this days, but is pretty important that they work from monday to friday non-stop. This is why I monitor them.

Maybe I would like to monitor resources during weekend, but not uptime, so my question is... it is possible to auto-disable uptime monitoring during certain days of the week?

Is pretty disturbing, to receive mountains of notifications emails one every monitor check I have scheduled for the daily basis.

Regards

Re: Nagios time based monitoring

Posted: Sun Feb 20, 2011 1:50 pm
by tfnab
You should add something like

check_period workhours
notification_period workhours

to your host and service definitions. In the sample config "workhours" is defined in timeperiods.cfg as Monday thru Friday 9am til 5pm.

There's more on time periods here: http://nagios.sourceforge.net/docs/nagi ... riods.html

Re: Nagios time based monitoring

Posted: Sun Feb 20, 2011 3:14 pm
by SirLouen
Thanks! nagios is overpowered :D