diff options
author | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
commit | 3e45ec44d22f03ca6642e08f695c6d7274cecfaf (patch) | |
tree | a71b2ec81895b198757d8ec7272548b42ee074b8 /modules-available/rebootcontrol/pages/jumphost.inc.php | |
parent | [apis/cron] Simple logging function for debugging (diff) | |
download | slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.gz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.xz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.zip |
[statistics/rebootcontrol] Add WOL button to statistics module
* Overhauled task display in rebootcontrol module
* Can only add subnets by CIDR now instead of start and end
Diffstat (limited to 'modules-available/rebootcontrol/pages/jumphost.inc.php')
-rw-r--r-- | modules-available/rebootcontrol/pages/jumphost.inc.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules-available/rebootcontrol/pages/jumphost.inc.php b/modules-available/rebootcontrol/pages/jumphost.inc.php index 111560ef..7dcdd52c 100644 --- a/modules-available/rebootcontrol/pages/jumphost.inc.php +++ b/modules-available/rebootcontrol/pages/jumphost.inc.php @@ -30,15 +30,9 @@ class SubPage private static function execCheckConnection($hostid) { $host = self::getJumpHost($hostid); - $script = str_replace(['%IP%', '%MACS%'], ['255.255.255.255', '00:11:22:33:44:55'], $host['script']); - $task = RebootControl::runScript([[ - 'clientip' => $host['host'], - 'port' => $host['port'], - 'username' => $host['username'], - ]], $script, 5, $host['sshkey']); + $task = RebootControl::wakeViaJumpHost($host, '255.255.255.255', [['macaddr' => '00:11:22:33:44:55']]); if (!Taskmanager::isTask($task)) return; - TaskmanagerCallback::addCallback($task, 'rbcConnCheck', $hostid); Util::redirect('?do=rebootcontrol&show=task&type=checkhost&what=task&taskid=' . $task['id']); } |