Corrected bug #149
[openwrt.git] / openwrt / package / rrdcollect / files / rrd.conf
1 #
2 # Author: Christian Rost (chr@baltic-online.de)
3 # Purpose: Shell-Interface to rrdtool
4 #
5 # Configuration-File for rrd.sh
6 #
7 DATADIR=/var/lib/rrdcollect
8 # Location of *.rrd-data-files
9 RRDDIR=$DATADIR/rrd
10 # Location of *.png-files
11 IMGDIR=$DATADIR/img
12 # Hostname used in title of png-images
13 HOSTNAME="WRT54GS"
14 # Location of rrdtool
15 RRDTOOL=/usr/bin/rrdtool
16 # Location of rrdcgi
17 RRDCGI=/usr/bin/rrdcgi
18 # Location of generated cgi-script
19 RRDCGISCRIPT=$DATADIR/rrd.cgi
20 # Image-Path relative to webserver-root
21 RRDCGIIMGPATH="/img"
22 # Location of netcat (used for fetching data from rrdcollect-daemon)
23 NETCAT=/usr/bin/nc
24
25 # Alternative settings for use on external machines
26 #RRDDIR=/home/webm/htdocs/stats/rrd/rrd
27 #IMGDIR=/home/webm/htdocs/stats/rrd/web
28 #RRDTOOL=/opt/rrd/bin/rrdtool
29 #RRDCGI=/opt/rrd/bin/rrdcgi
30 #RRDCGISCRIPT=/home/webm/cgi-bin/rrd.cgi
31 #RRDCGIIMGPATH="/stats/rrd/web"
32 #NETCAT=/opt/bin/nc
33
34
35 ####################################################################################
36 # Configuration of statistic sources:
37 #
38 # Column 1: Time-periods
39 # I'm interrested in last-24hour-, last-week- and last-month-plots.
40 # Column 2: Define precision/resolution of above three intervalls
41 # These values have an impact on the size of your rrd-files,
42 # and on the sharpness of your plots
43 # RES=1 means maximum precision (every pixel in the plot is individual)
44 # RES=4 -> 4 pixel represents one interval
45
46 # Optimized values for storing rather small rrd-files on the openwrt-box
47 HOURS=24;H_RES=2;DAYS=7;D_RES=4;WEEKS=4;W_RES=4;
48 # Measure-Step (Same value should be in the rrdcollect.conf) Optimal: STEP=$HOURS / $PIXWIDTH * 3600 * $H_RES
49 STEP=360; MAXSTEP=`expr $STEP \* 2`
50
51 # Values for storing rrd-files externally outside the router allowing better resolution
52 #HOURS=24;H_RES=1;DAYS=32;D_RES=2;WEEKS=50;W_RES=2;
53 #STEP=180; MAXSTEP=`expr $STEP \* 2`
54 # Even better resolution
55 #HOURS=8;H_RES=1;DAYS=32;D_RES=2;WEEKS=50;W_RES=2;
56 #STEP=60; MAXSTEP=`expr $STEP \* 2`
57
58 # Format and size of the plots PIXWIDTH will be used in
59 # calculating rrd-data-file dimensions during init of rrd-files
60 # If you change the size you must change NCGIPIXWIDTH too
61 PIXWIDTH=480
62 PIXHEIGHT=120
63 PIXFORMAT=PNG
64
65 # Image-Size of the thumbnail for rrdcgi
66 SCGIPIXWIDTH=400
67 # Normal Image-Size for rrdcgi (480px plotsize in rrd)
68 NCGIPIXWIDTH=571
69
70 # Predefined colors
71 RED0=#ff0000; RED1=#ff5555;
72 GRN0=#009828; GRN1=#81ffa2;
73 ORG0=#ff9900; ORG1=#ffc571;
74 BLU0=#0030ff; BLU1=#8ba1ff;
75 CYA0=#ff00FF; CYA1=#ffbcfe;
76 YEL0=#ffff00; YEL1=#e0df76;
77 BLK0=#000000; BLK1=#7d7d7d;
78 WHI0=#FFFFFF; WHI1=#c1c1c1;
79
80 # Date-String used when creating images with rrd.sh
81 DATE=`/bin/date "+%d.%m.%Y %H:%M:%S"`
82
83 # Max-Values bytes/second and packets/second for WAN/Wifi/LAN Interfaces
84 MAXWANB=130000
85 MAXWANP=500
86 MAXWIFB=600000
87 MAXWIFP=800
88 MAXLANB=1200000
89 MAXLANP=1000
90
91 # RRD-Types:
92 # GAUGE=save the value itself, no calculations at all
93 # COUNTER=continuously increasing value. difference between last 2 values must be positive ! (Traffic-Counter)
94 # DERIVE=like counter but can store negative values (rate of change in free disk-space)
95 #
96 # General syntax: PREFIX_POSTFIX=[-]<rrdcollect-variable>|Legend|RRD-Type|Maximum|Color|RRD-Plot-Type|Printf-Precision|Optional rrdgraph def-arguments
97
98 ################
99 # Sys-Statistics
100 ################
101 SYS_L01=" l1|System Load (1 min)|GAUGE|U|$YEL0|AREA|%6.2lf"
102 SYS_L05=" l2|System Load (5 min)|GAUGE|U|$ORG0|STACK|%6.2lf"
103 SYS_L15=" l3|System Load (15 min)|GAUGE|U|$RED0|STACK|%6.2lf"
104
105 SYS_CPN=" cn|CPU nice |COUNTER|U|$YEL0|AREA|%6.2lf%%"
106 SYS_CPU=" cu|CPU user |COUNTER|U|$ORG0|STACK|%6.2lf%%"
107 SYS_CPS=" cs|CPU system |COUNTER|U|$RED0|STACK|%6.2lf%%"
108 SYS_CPI=" ci|CPU idle |COUNTER|U|$GRN0|STACK|%6.2lf%%"
109
110 SYS_MEU=" mu|Memory used |GAUGE|U|$BLU0|AREA"
111 SYS_MEF=" mf|Memory free |GAUGE|U|$GRN0|STACK"
112 #SYS_MES=" ms|Memory shared |GAUGE|U|$BLK0|LINE1"
113 SYS_MEB=" mb|Memory buffer |GAUGE|U|$YEL0|LINE1"
114 SYS_MEC=" mc|Memory cached |GAUGE|U|$RED0|LINE1"
115
116 SYS_FUS=" us|Flash Disk Used |GAUGE|U|$BLU0|AREA|%6.2lf%s|CDEF:usC=us,1024,* CDEF:MAXusC=us,1024,*"
117 SYS_FAV=" av|Flash Disk Available|GAUGE|U|$GRN0|STACK|%6.2lf%s|CDEF:avC=av,1024,* CDEF:MAXavC=av,1024,*"
118
119 SYS_IRA="ira|Interrupts total |COUNTER|U|$RED0|AREA"
120 SYS_IRE="ire|Interrupts eth0 |COUNTER|U|$ORG0|AREA"
121 SYS_IRW="irw|Interrupts wifi |COUNTER|U|$YEL0|STACK"
122
123 SYS_PRT=" pt|Processes total |GAUGE|U|$BLU0|AREA|%6.0lf"
124 SYS_CTX=" ct|Context switches |COUNTER|U|$RED0|LINE2|%6.0lf"
125 SYS_PRR=" pr|Processes active |GAUGE|U|$ORG0|AREA|%6.0lf"
126 SYS_ARP="arp|Arp Entries |GAUGE|U|$YEL0|LINE2|%6.0lf"
127 SYS_PFK=" fk|Forks |COUNTER|U|$GRN0|LINE2|%6.0lf"
128 SYS_CON="con|NAT-Connections |GAUGE|U|$CYA0|LINE2|%6.0lf"
129
130 # Plot-Titles
131 MISC_STATS="Misc ($HOSTNAME)"
132 DSK_STATS="Flash Disk Usage ($HOSTNAME)"
133 USG_STATS="System Load ($HOSTNAME)"
134 MEM_STATS="Memory Usage ($HOSTNAME)"
135 CPU_STATS="CPU Usage ($HOSTNAME)"
136 IRQ_STATS="Interrupts ($HOSTNAME)"
137
138 # Plot-Definitions (sort-order is relevant)
139 SYS_CPU_STATS="CPN CPU CPS CPI"
140 #SYS_MEM_STATS="MEU MEF MES MEB MEC"
141 SYS_MEM_STATS="MEU MEF MEB MEC"
142 SYS_USG_STATS="L01 L05 L15"
143 SYS_DSK_STATS="FUS FAV"
144 SYS_MISC_STATS="PRT PRR ARP PFK CTX CON"
145 SYS_IRQ_STATS="IRA IRE IRW"
146
147 # Data-Definition needed by init()
148 SYS_ALL="$SYS_CPU_STATS $SYS_MEM_STATS $SYS_USG_STATS $SYS_DSK_STATS $SYS_MISC_STATS $SYS_IRQ_STATS"
149
150 #################################################################################################
151 # Wifi Traffic & Wan Traffic & Tunnel Traffic Statistics ; # LAN: vlan0 , WAN: vlan1 , eth1: WIFI
152 #################################################################################################
153 IF_WLOBY="Wibo |Outgoing Traffic Wifi |COUNTER|$MAXWIFB|$GRN1|AREA"
154 IF_WLIBY="-Wibi|Incoming Traffic Wifi |COUNTER|$MAXWIFB|$RED0|AREA"
155 IF_WLOPK="Wipo |Outgoing Packets Wifi |COUNTER|$MAXWIFP|$GRN1|AREA|%6.0lf"
156 IF_WLIPK="-Wipi|Incoming Packets Wifi |COUNTER|$MAXWIFP|$RED0|AREA|%6.0lf"
157
158 IF_WAIBY="-Wabi|Incoming Traffic Wan |COUNTER|$MAXWANB|$BLU0|AREA"
159 IF_WAOBY="Wabo |Outgoing Traffic Wan |COUNTER|$MAXWANB|$ORG1|AREA"
160 IF_WAIPK="-Wapi|Incoming Packets Wan |COUNTER|$MAXWANP|$BLU0|AREA|%6.0lf"
161 IF_WAOPK="Wapo |Outgoing Packets Wan |COUNTER|$MAXWANP|$ORG1|AREA|%6.0lf"
162
163 IF_LAIBY="-Labi|Incoming Traffic Lan |COUNTER|$MAXLANB|$BLU0|AREA"
164 IF_LAOBY="Labo |Outgoing Traffic Lan |COUNTER|$MAXLANB|$ORG1|AREA"
165 IF_LAIPK="-Lapi|Incoming Packets Lan |COUNTER|$MAXLANP|$BLU0|AREA|%6.0lf"
166 IF_LAOPK="Lapo |Outgoing Packets Lan |COUNTER|$MAXLANP|$ORG1|AREA|%6.0lf"
167
168 #IF_TUIBY="-tbi|Incoming Traffic VPN-Tunnel|COUNTER|$MAXWANB|$CYA0|AREA"
169 #IF_TUOBY="tbo |Outgoing Traffic VPN-Tunnel|COUNTER|$MAXWANB|$YEL1|AREA"
170 #IF_TUIPK="-tpi|Incoming Packets VPN-Tunnel|COUNTER|$MAXWANP|$CYA0|AREA|%6.0lf"
171 #IF_TUOPK="tpo |Outgoing Packets VPN-Tunnel|COUNTER|$MAXWANP|$YEL1|AREA|%6.0lf"
172
173 # Plot-Titles
174 WIFI_TRAFFIC="Wifi Interface Traffic Statistics ($HOSTNAME)"
175 WIFI_PACKETS="Wifi Interface Packets Statistics ($HOSTNAME)"
176 WAN_TRAFFIC="Wan Interface Traffic Statistics ($HOSTNAME)"
177 WAN_PACKETS="Wan Interface Packets Statistics ($HOSTNAME)"
178 LAN_TRAFFIC="Lan Interface Traffic Statistics ($HOSTNAME)"
179 LAN_PACKETS="Lan Interface Packets Statistics ($HOSTNAME)"
180
181 #TUN_TRAFFIC="VPN-Tunnel Interface Traffic Statistics ($HOSTNAME)"
182 #TUN_PACKETS="VPN-Tunnel Interface Packets Statistics ($HOSTNAME)"
183
184 # Plot-Definitions (sort-order is relevant)
185 IF_WIFI_TRAFFIC="WLOBY WLIBY"
186 IF_WIFI_PACKETS="WLOPK WLIPK"
187 IF_WAN_TRAFFIC="WAIBY WAOBY"
188 IF_WAN_PACKETS="WAIPK WAOPK"
189 IF_LAN_TRAFFIC="LAIBY LAOBY"
190 IF_LAN_PACKETS="LAIPK LAOPK"
191 #IF_TUN_TRAFFIC="TUIBY TUOBY"
192 #IF_TUN_PACKETS="TUIPK TUOPK"
193
194 # Data-Definition needed by init()
195 #IF_ALL="$IF_WIFI_TRAFFIC $IF_WIFI_PACKETS $IF_WAN_TRAFFIC $IF_WAN_PACKETS $IF_TUN_TRAFFIC $IF_TUN_PACKETS"
196 IF_ALL="$IF_LAN_TRAFFIC $IF_LAN_PACKETS $IF_WAN_TRAFFIC $IF_WAN_PACKETS $IF_WIFI_TRAFFIC $IF_WIFI_PACKETS"
197
198 ##############################################
199 # Port Traffic Statistics for Port 1 - Port 4
200 ##############################################
201 #PT_OPK1="po1 |Port 1 Outgoing Packets |COUNTER|U|$ORG1|AREA|%6.0lf"
202 #PT_IPK1="-pi1|Port 1 Incoming Packets |COUNTER|U|$GRN0|AREA|%6.0lf"
203 #PT_COL1="cl1 |Port 1 Collisions |COUNTER|U|$BLU0|AREA|%6.0lf"
204 #PT_ERR1="er1 |Port 1 Errors |COUNTER|U|$CYA0|AREA|%6.0lf"
205 #PT_OBY1="bo1 |Port 1 Outgoing Traffic |COUNTER|U|$ORG1|AREA"
206 #PT_IBY1="-bi1|Port 1 Incoming Traffic |COUNTER|U|$GRN0|AREA"
207 #PT_OPK2="po2 |Port 2 Outgoing Packets |COUNTER|U|$RED1|AREA|%6.0lf"
208 #PT_IPK2="-pi2|Port 2 Incoming Packets |COUNTER|U|$BLK0|AREA|%6.0lf"
209 #PT_COL2="cl2 |Port 2 Collisions |COUNTER|U|$GRN0|AREA|%6.0lf"
210 #PT_ERR2="er2 |Port 2 Errors |COUNTER|U|$ORG0|AREA|%6.0lf"
211 #PT_OBY2="bo2 |Port 2 Outgoing Traffic |COUNTER|U|$RED1|AREA"
212 #PT_IBY2="-bi2|Port 2 Incoming Traffic |COUNTER|U|$BLK0|AREA"
213 #PT_OPK3="po3 |Port 3 Outgoing Packets |COUNTER|U|$BLU1|AREA|%6.0lf"
214 #PT_IPK3="-pi3|Port 3 Incoming Packets |COUNTER|U|$CYA0|AREA|%6.0lf"
215 #PT_COL3="cl3 |Port 3 Collisions |COUNTER|U|$GRN0|AREA|%6.0lf"
216 #PT_ERR3="er3 |Port 3 Errors |COUNTER|U|$ORG0|AREA|%6.0lf"
217 #PT_OBY3="bo3 |Port 3 Outgoing Traffic |COUNTER|U|$BLU1|AREA"
218 #PT_IBY3="-bi3|Port 3 Incoming Traffic |COUNTER|U|$CYA0|AREA"
219 #PT_OPK4="po4 |Port 4 Outgoing Packets |COUNTER|U|$YEL1|AREA|%6.0lf"
220 #PT_IPK4="-pi4|Port 4 Incoming Packets |COUNTER|U|$CYA0|AREA|%6.0lf"
221 #PT_COL4="cl4 |Port 4 Collisions |COUNTER|U|$BLK0|AREA|%6.0lf"
222 #PT_ERR4="er4 |Port 4 Errors |COUNTER|U|$RED0|AREA|%6.0lf"
223 #PT_OBY4="bo4 |Port 4 Outgoing Traffic |COUNTER|U|$YEL1|AREA"
224 #PT_IBY4="-bi4|Port 4 Incoming Traffic |COUNTER|U|$CYA0|AREA"
225
226 # Plot-Titles
227 #TRAFFIC_1="Traffic Statistics Port 1 ($HOSTNAME)"
228 #TRAFFIC_2="Traffic Statistics Port 2 ($HOSTNAME)"
229 #TRAFFIC_3="Traffic Statistics Port 3 ($HOSTNAME)"
230 #TRAFFIC_4="Traffic Statistics Port 4 ($HOSTNAME)"
231 #PACKETS_1="Packet Statistics Port 1 ($HOSTNAME)"
232 #PACKETS_2="Packet Statistics Port 2 ($HOSTNAME)"
233 #PACKETS_3="Packet Statistics Port 3 ($HOSTNAME)"
234 #PACKETS_4="Packet Statistics Port 4 ($HOSTNAME)"
235
236 # Plot-Definitions (sort-order is relevant)
237 #PT_TRAFFIC_1="OBY1 IBY1"
238 #PT_TRAFFIC_2="OBY2 IBY2"
239 #PT_TRAFFIC_3="OBY3 IBY3"
240 #PT_TRAFFIC_4="OBY4 IBY4"
241 #PT_PACKETS_1="OPK1 IPK1 COL1 ERR1"
242 #PT_PACKETS_2="OPK2 IPK2 COL2 ERR2"
243 #PT_PACKETS_3="OPK3 IPK3 COL3 ERR3"
244 #PT_PACKETS_4="OPK4 IPK4 COL4 ERR4"
245 #PT_PACKETS_1="OPK1 IPK1"
246 #PT_PACKETS_2="OPK2 IPK2"
247 #PT_PACKETS_3="OPK3 IPK3"
248 #PT_PACKETS_4="OPK4 IPK4"
249
250 # Data Definition needed by init()
251 #PT_ALL="$PT_TRAFFIC_1 $PT_TRAFFIC_2 $PT_TRAFFIC_3 $PT_TRAFFIC_4 $PT_PACKETS_1 $PT_PACKETS_2 $PT_PACKETS_3 $PT_PACKETS_4"
252
253 #################################
254 # Traffic Priorisation Statistics
255 #################################
256 #TC_APRIB="bwa|Ack Priority Queue Bandwidth |COUNTER|$MAXWANB|$YEL0|AREA"
257 #TC_DPRIB="bwd|Default Priority Queue Bandwidth |COUNTER|$MAXWANB|$ORG0|STACK"
258 #TC_HPRIB="bwh|High Priority Queue Bandwidth |COUNTER|$MAXWANB|$RED0|STACK"
259 #TC_LPRIB="bwl|Low Priority Queue Bandwidth |COUNTER|$MAXWANB|$GRN0|STACK"
260 #TC_APRID="dra|Ack Priority Queue Packet Dropped |COUNTER|100|$YEL0|AREA"
261 #TC_DPRID="drd|Default Priority Queue Packet Dropped|COUNTER|100|$ORG0|STACK"
262 #TC_HPRID="drh|High Priority Queue Packet Dropped |COUNTER|100|$RED0|STACK"
263 #TC_LPRID="drl|Low Priority Queue Packet Dropped |COUNTER|100|$GRN0|STACK"
264
265 # Plot-Titles
266 #TRAFFIC="Traffic Priorisation Stats"
267 #PACKETS="Packet Priorisation Stats"
268
269 # Plot-Definitions (sort-order is relevant)
270 #TC_TRAFFIC="APRIB DPRIB HPRIB LPRIB"
271 #TC_PACKETS="APRID DPRID HPRID LPRID"
272
273 # Data Definition needed by init()
274 #TC_ALL="$TC_TRAFFIC $TC_PACKETS"
275
276 #################################
277 # Firewall Packet Drop Statistics
278 #################################
279 #PC_WIN="win|Windows Traffic |COUNTER|U|$YEL0|AREA"
280 #PC_INV="inv|Invalid State Traffic |COUNTER|U|$ORG0|STACK"
281 #PC_TCP="tcp|TCP Packets |COUNTER|U|$RED0|STACK"
282 #PC_OTH="oth|Other Packets |COUNTER|U|$BLU0|STACK"
283
284 # Plot-Titles
285 #DROPPED="Firewall Packet Drop Statistics"
286
287 # Plot-Definitions (sort-order is relevant)
288 #PC_DROPPED="WIN INV TCP OTH"
289
290 # Data Definition needed by init()
291 #PC_ALL="$PC_DROPPED"
292
293 ##########################
294 # Traffic Accounting Stats
295 ##########################
296 #ACI="Incoming for "; ACO="Outgoing for "
297 #IP14="notebook"; COL14=$ORG0; COL_14=$ORG1
298 #IP15="saugi "; COL15=$RED0; COL_15=$RED1
299 #IP20="aplink "; COL20=$GRN0; COL_20=$GRN1
300 #IP50="sunny "; COL50=$BLU0; COL_50=$BLU1
301
302 #TYPE=AREA
303 #for i in 15 50 20 14
304 #do
305 # # Packet-Statistics
306 # eval AC_TIP$i='-TIP$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL$i\|$TYPE"
307 # eval AC_TOP$i='TOP$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL_$i\|$TYPE"
308 # eval AC_UIP$i='-UIP$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL$i\|$TYPE"
309 # eval AC_UOP$i='UOP$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL_$i\|$TYPE"
310 # eval AC_IIP$i='-IIP$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL$i\|$TYPE"
311 # eval AC_IOP$i='IOP$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANP\|\$COL_$i\|$TYPE"
312 # # Traffic Statistics
313 # eval AC_TIB$i='-TIB$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL$i\|$TYPE"
314 # eval AC_TOB$i='TOB$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL_$i\|$TYPE"
315 # eval AC_UIB$i='-UIB$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL$i\|$TYPE"
316 # eval AC_UOB$i='UOB$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL_$i\|$TYPE"
317 # eval AC_IIB$i='-IIB$i\|$ACI'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL$i\|$TYPE"
318 # eval AC_IOB$i='IOB$i\|$ACO'"\$IP$i\|COUNTER\|$MAXWANB\|\$COL_$i\|$TYPE"
319 # # Plot-Definitions (sort-order is relevant)
320 # AC_TB_O="$AC_TB_O TOB$i"; AC_TB_I="$AC_TB_I TIB$i"
321 # AC_TP_O="$AC_TP_O TOP$i"; AC_TP_I="$AC_TP_I TIP$i"
322 # AC_UB_O="$AC_UB_O UOB$i"; AC_UB_I="$AC_UB_I UIB$i"
323 # AC_UP_O="$AC_UP_O UOP$i"; AC_UP_I="$AC_UP_I UIP$i"
324 # AC_IB_O="$AC_IB_O IOB$i"; AC_IB_I="$AC_IB_I IIB$i"
325 # AC_IP_O="$AC_IP_O IOP$i"; AC_IP_I="$AC_IP_I IIP$i"
326 # TYPE=STACK
327 #done
328 #AC_TB="$AC_TB_O $AC_TB_I"; AC_TP="$AC_TP_O $AC_TP_I"
329 #AC_UB="$AC_UB_O $AC_UB_I"; AC_UP="$AC_UP_O $AC_UP_I"
330 #AC_IB="$AC_IB_O $AC_IB_I"; AC_IP="$AC_IP_O $AC_IP_I";
331
332 # Plot-Titles
333 #TB="TCP Traffic Accounting Stats ($HOSTNAME)"; TP="TCP Packet Accounting Stats ($HOSTNAME)"
334 #UB="UDP Traffic Accounting Stats ($HOSTNAME)"; UP="UDP Packet Accounting Stats ($HOSTNAME)"
335 #IB="ICMP Traffic Accounting Stats ($HOSTNAME)";IP="ICMP Packet Accounting Stats ($HOSTNAME)"
336
337 # Data Definition needed by init()
338 #AC_ALL="$AC_TB $AC_TP $AC_UB $AC_UP $AC_IB $AC_IP"
339
340
341 # System Statistics
342 GRAPH_1="SYS|USG_STATS|$USG_STATS|Load"
343 GRAPH_2="SYS|CPU_STATS|$CPU_STATS|CPU-Time_in_%|1000|--upper-limit 100 --rigid --logarithmic --lower-limit 0.1"
344 GRAPH_3="SYS|MEM_STATS|$MEM_STATS|Bytes|1024"
345 GRAPH_4="SYS|DSK_STATS|$DSK_STATS|Bytes|1024"
346 GRAPH_5="SYS|MISC_STATS|$MISC_STATS|_|1000|--logarithmic"
347 GRAPH_6="SYS|IRQ_STATS|$IRQ_STATS|IRQ_per_second|1000"
348 # Interface Traffic Statistics
349 GRAPH_7="IF|LAN_TRAFFIC|$LAN_TRAFFIC|Bytes_per_second"
350 GRAPH_8="IF|LAN_PACKETS|$LAN_PACKETS|Packets_per_second"
351 GRAPH_9="IF|WAN_TRAFFIC|$WAN_TRAFFIC|Bytes_per_second"
352 GRAPH_10="IF|WAN_PACKETS|$WAN_PACKETS|Packets_per_second"
353 GRAPH_11="IF|WIFI_TRAFFIC|$WIFI_TRAFFIC|Bytes_per_second"
354 GRAPH_12="IF|WIFI_PACKETS|$WIFI_PACKETS|Packets_per_second"
355 #GRAPH_11="IF|TUN_TRAFFIC|$TUN_TRAFFIC|Bytes_per_second"
356 #GRAPH_12="IF|TUN_PACKETS|$TUN_PACKETS|Packets_per_second"
357 # Port Traffic Statistics
358 #GRAPH_13="PT|TRAFFIC_1|$TRAFFIC_1|Bytes_per_second"
359 #GRAPH_14="PT|PACKETS_1|$PACKETS_1|Packets_per_second"
360 #GRAPH_15="PT|TRAFFIC_2|$TRAFFIC_2|Bytes_per_second"
361 #GRAPH_16="PT|PACKETS_2|$PACKETS_2|Packets_per_second"
362 #GRAPH_17="PT|TRAFFIC_3|$TRAFFIC_3|Bytes_per_second"
363 #GRAPH_18="PT|PACKETS_3|$PACKETS_3|Packets_per_second"
364 #GRAPH_19="PT|TRAFFIC_4|$TRAFFIC_4|Bytes_per_second"
365 #GRAPH_20="PT|PACKETS_4|$PACKETS_4|Packets_per_second"
366 # Traffic Priorisation Statistics
367 # GRAPH_21="TC|TRAFFIC|$TRAFFIC|Bytes_per_second|1000|--logarithmic"
368 # GRAPH_22="TC|PACKETS|$PACKETS|Packets_per_second"
369 # Accounting Statistics
370 #GRAPH_23="AC|TB|$TB|Bytes_per_second"
371 #GRAPH_24="AC|TP|$TP|Packets_per_second"
372 #GRAPH_25="AC|UB|$UB|Bytes_per_second"
373 #GRAPH_26="AC|UP|$UP|Packets_per_second"
374 #GRAPH_27="AC|IB|$IB|Bytes_per_second"
375 #GRAPH_28="AC|IP|$IP|Packets_per_second"
376 # Firewall Drop Statistics
377 #GRAPH_29="PC|DROPPED|$DROPPED|Packets_per_second"
378
379 #ALL_PRAEFIXES="SYS IF PT TC AC PC"
380 ALL_PRAEFIXES="SYS IF"
381 GRAPH_MAX=12
This page took 0.057252 seconds and 5 git commands to generate.