mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-04 08:16:17 +00:00
Added RRD Tool plugins
This commit is contained in:
12
src/plugins/rrd_data/daily_graph.py
Normal file
12
src/plugins/rrd_data/daily_graph.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import rrdtool
|
||||
|
||||
rrdtool.graph(
|
||||
'daily_wg0.png',
|
||||
'--start', '-300',
|
||||
'--end', 'now',
|
||||
'--title', 'Daily Traffic',
|
||||
'DEF:in=./plugins/rrd_data/wg0.rrd:in:AVERAGE',
|
||||
'DEF:out=./plugins/rrd_data/wg0.rrd:out:AVERAGE',
|
||||
'LINE1:in#00FF00:Incoming Traffic',
|
||||
'LINE1:out#0000FF:Outgoing Traffic'
|
||||
)
|
Reference in New Issue
Block a user