Page 1 of 1

[SOLVED] Host group and time period

Posted: Fri Apr 07, 2017 4:45 am
by prostolitkk
Hi :)
Please help understand how i can define "time period" for host group.
I have services, and they use hostgroup_name for refer to hosts, but in some host groups i have different time period (work hours).
Need duplicate service with custom time periods?
Or i can use macros or some different ways?

Re: Host group and time period

Posted: Fri Apr 07, 2017 10:46 am
by mcapra
Timeperiods cannot be applied to hostgroups unfortunately. You would need to either define the timeperiods in-line for each host/service or use a template.

Re: Host group and time period

Posted: Mon Apr 10, 2017 11:33 am
by prostolitkk
Ok
Can i define time period for host, and link this host period to all they services that apply to it?

Re: Host group and time period

Posted: Mon Apr 10, 2017 2:36 pm
by mcapra
The host's timeperiod will not be inherited by its services. Though you could define a single timeperiod and apply it to both hosts and services, yes.

As this page states, check_period is a required directive for a host/service definition:
https://assets.nagios.com/downloads/nag ... tions.html