added router online status, also add monitor and also report to admin when goes offline, report depend on cron runtime

This commit is contained in:
Focuslinkstech
2024-08-27 00:26:52 +01:00
committed by GitHub
parent 50a3f0a175
commit 76ac9431b3
4 changed files with 98 additions and 19 deletions

View File

@ -138,6 +138,8 @@ CREATE TABLE `tbl_routers` (
`password` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`coordinates` VARCHAR(50) NOT NULL DEFAULT '',
`status` ENUM('Online', 'Offline') DEFAULT 'Online',
`last_seen` DATETIME,
`coverage` VARCHAR(8) NOT NULL DEFAULT '0',
`enabled` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 disabled'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;