Got 3750-X monitoring working

This commit is contained in:
2026-03-17 19:38:27 +01:00
parent c474f9c9c2
commit e66998b826
9 changed files with 424 additions and 132 deletions

View File

@@ -59,6 +59,24 @@ CREATE TABLE IDRACmeasurement (
INDEX idx_host_time (hostname, time_stamp)
);
-- New universal table type
CREATE TABLE C3750XMeasurement (
id MEDIUMINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
time_stamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
hostname VARCHAR(64) NOT NULL,
systemStatus VARCHAR(64) NOT NULL,
systemTemp DECIMAL(7,2) NOT NULL,
last5SecUsage DECIMAL(7,2) NOT NULL,
last1MinUsage DECIMAL(7,2) NOT NULL,
last5MinUsage DECIMAL(7,2) NOT NULL,
uptimeS BIGINT,
INDEX idx_time (time_stamp),
INDEX idx_host_time (hostname, time_stamp)
);
CREATE TABLE fansHOSTNAMEHERE (
id MEDIUMINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
time_stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,