rrd.conf 16 KB

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