WIP: Job to retrieve node information for monitoring.
This commit is contained in:
parent
67767f915e
commit
ad3f075d93
14 changed files with 274 additions and 15 deletions
server/db/patches
15
server/db/patches/002_add-node-status-table.sql
Normal file
15
server/db/patches/002_add-node-status-table.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
CREATE TABLE node_state (
|
||||
id INTEGER PRIMARY KEY,
|
||||
|
||||
mac VARCHAR(17) NOT NULL UNIQUE,
|
||||
|
||||
state VARCHAR(10) NOT NULL,
|
||||
last_seen DATETIME NOT NULL,
|
||||
|
||||
import_timestamp DATETIME NOT NULL,
|
||||
|
||||
last_status_mail_send DATETIME,
|
||||
|
||||
created_at DATETIME DEFAULT (strftime('%s','now')) NOT NULL,
|
||||
modified_at DATETIME DEFAULT (strftime('%s','now')) NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue