From 3e45ec44d22f03ca6642e08f695c6d7274cecfaf Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 7 Dec 2019 13:52:54 +0100 Subject: [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 --- modules-available/rebootcontrol/install.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules-available/rebootcontrol/install.inc.php') diff --git a/modules-available/rebootcontrol/install.inc.php b/modules-available/rebootcontrol/install.inc.php index eb484d3e..0aedfa20 100644 --- a/modules-available/rebootcontrol/install.inc.php +++ b/modules-available/rebootcontrol/install.inc.php @@ -8,7 +8,7 @@ $output[] = tableCreate('reboot_subnet', " `end` INT(10) UNSIGNED NOT NULL, `fixed` BOOL NOT NULL, `isdirect` BOOL NOT NULL, - `lastdirectcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0', + `nextdirectcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0', `lastseen` INT(10) UNSIGNED NOT NULL DEFAULT '0', `seencount` INT(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`subnetid`), @@ -33,9 +33,9 @@ $output[] = tableCreate('reboot_subnet_x_subnet', " `srcid` INT(10) UNSIGNED NOT NULL, `dstid` INT(10) UNSIGNED NOT NULL, `reachable` BOOL NOT NULL, - `lastcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0', + `nextcheck` INT(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY (`srcid`, `dstid`), - KEY `lastcheck` (`lastcheck`)"); + KEY `nextcheck` (`nextcheck`)"); $output[] = tableAddConstraint('reboot_jumphost_x_subnet', 'hostid', 'reboot_jumphost', 'hostid', 'ON UPDATE CASCADE ON DELETE CASCADE'); -- cgit v1.2.3-55-g7522