Nagios time based monitoring

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
SirLouen
Posts: 6
Joined: Wed Sep 15, 2010 8:04 am

Nagios time based monitoring

Post 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
tfnab
Posts: 2
Joined: Sun Feb 20, 2011 8:00 am
Location: Germany
Contact:

Re: Nagios time based monitoring

Post 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
SirLouen
Posts: 6
Joined: Wed Sep 15, 2010 8:04 am

Re: Nagios time based monitoring

Post by SirLouen »

Thanks! nagios is overpowered :D
Locked