Got 3750-X monitoring working
This commit is contained in:
18
tables.sql
18
tables.sql
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user