[SOLVED] Host group and time period

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
prostolitkk
Posts: 2
Joined: Fri Apr 07, 2017 4:34 am

[SOLVED] Host group and time period

Post 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?
Last edited by prostolitkk on Tue Apr 11, 2017 1:53 am, edited 1 time in total.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host group and time period

Post 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.
Former Nagios employee
https://www.mcapra.com/
prostolitkk
Posts: 2
Joined: Fri Apr 07, 2017 4:34 am

Re: Host group and time period

Post by prostolitkk »

Ok
Can i define time period for host, and link this host period to all they services that apply to it?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Host group and time period

Post 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
Former Nagios employee
https://www.mcapra.com/
Locked