src/go/plugin/scripts.d/pkg/timeperiod/README.md
Time periods control when a Nagios check job is allowed to run. Each time period is a named schedule with one or more allow rules.
paused.24x7 period (always allowed) is the default check_period.check_period option in a job to reference a named time period.time_periods option within the same job.| Type | Description | Key Fields |
|---|---|---|
weekly | Repeats on specific weekdays | days, ranges |
nth_weekday | Nth occurrence of a weekday in a month | weekday, nth, ranges |
date | Specific calendar dates | dates, ranges |
days — List of weekday names: monday, tuesday, wednesday, thursday, friday, saturday, sundayranges — List of time ranges in HH:MM-HH:MM format (e.g., "09:00-18:00"). Use "00:00-24:00" for all day.weekday — Single weekday name (for nth_weekday rules)nth — Which occurrence of the weekday in the month (1 = first, 2 = second, etc.)dates — List of calendar dates in YYYY-MM-DD formatexclude — List of other time period names to subtract from this periodtime_periods:
- name: business_hours
alias: Business Hours
rules:
- type: weekly
days: [monday, tuesday, wednesday, thursday, friday]
ranges: ["09:00-18:00"]
time_periods:
- name: first_monday_maintenance
alias: First Monday Maint
rules:
- type: nth_weekday
weekday: monday
nth: 1
ranges: ["02:00-04:00"]
time_periods:
- name: holidays
alias: Holiday Blackout
rules:
- type: date
dates: ["2026-12-25", "2026-12-31"]
ranges: ["00:00-24:00"]
time_periods:
- name: run_checks
alias: Run Checks
rules:
- type: weekly
days: [sunday, monday, tuesday, wednesday, thursday, friday, saturday]
ranges: ["00:00-24:00"]
exclude: [first_monday_maintenance, holidays]
YYYY-MM-DD.HH:MM-HH:MM. 24:00 is valid only as an end boundary.24x7 period is always available and is the default check_period.