mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Allow users to keep more statistics in the db
* Add $config['enable_extended_port_metrics'] to enable feature * Add a new table to store stuff in * Update data from the poller
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
create table ports_statistics (
|
||||
port_id int(11) NOT NULL,
|
||||
ifInNUcastPkts bigint(20) DEFAULT NULL,
|
||||
ifInNUcastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifInNUcastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifInNUcastPkts_rate int(11) DEFAULT NULL,
|
||||
ifOutNUcastPkts bigint(20) DEFAULT NULL,
|
||||
ifOutNUcastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifOutNUcastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifOutNUcastPkts_rate int(11) DEFAULT NULL,
|
||||
ifInDiscards bigint(20) DEFAULT NULL,
|
||||
ifInDiscards_prev bigint(20) DEFAULT NULL,
|
||||
ifInDiscards_delta bigint(20) DEFAULT NULL,
|
||||
ifInDiscards_rate int(11) DEFAULT NULL,
|
||||
ifOutDiscards bigint(20) DEFAULT NULL,
|
||||
ifOutDiscards_prev bigint(20) DEFAULT NULL,
|
||||
ifOutDiscards_delta bigint(20) DEFAULT NULL,
|
||||
ifOutDiscards_rate int(11) DEFAULT NULL,
|
||||
ifInUnknownProtos bigint(20) DEFAULT NULL,
|
||||
ifInUnknownProtos_prev bigint(20) DEFAULT NULL,
|
||||
ifInUnknownProtos_delta bigint(20) DEFAULT NULL,
|
||||
ifInUnknownProtos_rate int(11) DEFAULT NULL,
|
||||
ifInBroadcastPkts bigint(20) DEFAULT NULL,
|
||||
ifInBroadcastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifInBroadcastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifInBroadcastPkts_rate int(11) DEFAULT NULL,
|
||||
ifOutBroadcastPkts bigint(20) DEFAULT NULL,
|
||||
ifOutBroadcastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifOutBroadcastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifOutBroadcastPkts_rate int(11) DEFAULT NULL,
|
||||
ifInMulticastPkts bigint(20) DEFAULT NULL,
|
||||
ifInMulticastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifInMulticastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifInMulticastPkts_rate int(11) DEFAULT NULL,
|
||||
ifOutMulticastPkts bigint(20) DEFAULT NULL,
|
||||
ifOutMulticastPkts_prev bigint(20) DEFAULT NULL,
|
||||
ifOutMulticastPkts_delta bigint(20) DEFAULT NULL,
|
||||
ifOutMulticastPkts_rate int(11) DEFAULT NULL,
|
||||
PRIMARY KEY(port_id),
|
||||
FOREIGN KEY(port_id) REFERENCES ports(port_id)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user