Fix cron and periodically module planned downtimes
This commit is contained in:
parent
be8ccde589
commit
1c41148390
|
@ -2385,7 +2385,8 @@ sub pandora_planned_downtime_cron_start($$) {
|
|||
$dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
pandora_planned_downtime_set_disabled_elements($pa_config,
|
||||
$dbh, $downtime);
|
||||
}
|
||||
|
@ -2436,7 +2437,8 @@ sub pandora_planned_downtime_cron_stop($$) {
|
|||
$dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
pandora_planned_downtime_unset_disabled_elements($pa_config,
|
||||
$dbh, $downtime);
|
||||
}
|
||||
|
@ -2828,7 +2830,8 @@ sub pandora_planned_downtime_monthly_start($$) {
|
|||
pandora_planned_downtime_set_quiet_elements($pa_config, $dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
|
||||
pandora_planned_downtime_set_disabled_elements($pa_config, $dbh, $downtime);
|
||||
}
|
||||
|
@ -2906,7 +2909,8 @@ sub pandora_planned_downtime_monthly_stop($$) {
|
|||
$dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
|
||||
pandora_planned_downtime_unset_disabled_elements($pa_config,
|
||||
$dbh, $downtime);
|
||||
|
@ -3016,7 +3020,8 @@ sub pandora_planned_downtime_weekly_start($$) {
|
|||
$dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
pandora_planned_downtime_set_disabled_elements($pa_config,
|
||||
$dbh, $downtime);
|
||||
}
|
||||
|
@ -3131,7 +3136,8 @@ sub pandora_planned_downtime_weekly_stop($$) {
|
|||
$dbh, $downtime->{'id'});
|
||||
}
|
||||
elsif (($downtime->{'type_downtime'} eq "disable_agents")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")) {
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agents_alerts")
|
||||
|| ($downtime->{'type_downtime'} eq "disable_agent_modules")) {
|
||||
pandora_planned_downtime_unset_disabled_elements($pa_config,
|
||||
$dbh, $downtime);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue