In order to reboot, we need to be able to open the control. So don't bothwe with ping.
parent
da450eca2f
commit
be98d56c43
|
|
@ -132,7 +132,7 @@ while (!$zm_terminate) {
|
|||
Debug("Monitor $monitor->{Id} $monitor->{Name}, startup time $now - $startup_time $startup_elapsed <? $Config{ZM_WATCH_MAX_DELAY}");
|
||||
if ($monitor->ControlId()) {
|
||||
my $control = $monitor->Control();
|
||||
if ($control and $control->CanReboot() and $control->ping() and $control->open()) {
|
||||
if ($control and $control->CanReboot() and $control->open()) {
|
||||
$control->reboot();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue