added and linked add_timeperiods
This commit is contained in:
18
templates/nagios/timeperiods_cfg_rule.erb
Normal file
18
templates/nagios/timeperiods_cfg_rule.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
define timeperiod {
|
||||
timeperiod_name <%= @ng_timeperiod_name %>
|
||||
alias <%= @ng_timeperiod_alias %>
|
||||
monday <%= @ng_timep_monday %>
|
||||
tuesday <%= @ng_timep_tuesday %>
|
||||
wednesday <%= @ng_timep_wednesday %>
|
||||
thursday <%= @ng_timep_thursday %>
|
||||
friday <%= @ng_timep_friday %>
|
||||
saturday <%= @ng_timep_saturday %>
|
||||
sunday <%= @ng_timep_sunday %>
|
||||
}
|
||||
<% unless @ng_timep_special_01.empty? -%>
|
||||
define timeperiod {
|
||||
timeperiod_name <%= @ng_timeperiod_name %>
|
||||
@ng_timep_special_01
|
||||
}
|
||||
<% end -%>
|
||||
Reference in New Issue
Block a user