Time periods

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
letsgetthisdone
Posts: 1
Joined: Mon Feb 20, 2017 10:14 am

Time periods

Post by letsgetthisdone »

Hi ,
I have a service which needs to be checked every day, every hour between XX:15 and XX:45.

Can somebody please guide me on how to create such time period?

I have used time periods before, but cannot figure how to build this one. :cry:

Thanks :)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Time periods

Post by scottwilkerson »

Without typing them all out, it would start like this:

Code: Select all

define timeperiod{
	timeperiod_name		periodname
	sunday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	monday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	tuesday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	wednesday		00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	thursday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	friday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	saturday			00:15-00:45,01:15-01:45,02:15-02:45,03:15-03:45,04:15-04:45, ...
	}
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked