Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"use template" directive is not taken into account in timeperiods, and reload raises no error #2003

Open
eduault opened this issue Dec 2, 2020 · 0 comments

Comments

@eduault
Copy link

eduault commented Dec 2, 2020

"use template" directive is apparently not taken into account in a timeperiod.
And the "/etc/init.d/shinken reload" command raises no configuration error about this directive.
Shinken version : 2.4.3

I defined this configuration :

define timeperiod {
    timeperiod_name         L-S_8H-22H_-_D_10H-20H    
    name         L-S_8H-22H_-_D_10H-20H
    monday                  08:00-22:00
    tuesday                 08:00-22:00
    wednesday               08:00-22:00
    thursday                08:00-22:00
    friday                  08:00-22:00
    saturday                08:00-22:00
    sunday                  10:00-20:00
}

define timeperiod {
	timeperiod_name		myapplication-timeperiod
	use					L-S_8H-22H_-_D_10H-20H
}

define host {
       host_name               myhost
..
       check_period            myapplication-timeperiod
}

But the active checks on this host are not executed during the L-S_8H-22H_-_D_10H-20H timeperiod.

The behavior (reload and execution of active checks) is the same without the "name" directive in the template timeperiod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant