Advertisement
Guest User

network.conf en RPI-Monitor

a guest
Apr 24th, 2020
375
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ########################################################################
  2. # Extract Network information
  3. # Page: 1
  4. # Information Status Statistics
  5. # - recieved - yes - yes
  6. # - send - yes - yes
  7. #
  8. # Note: Replace 'eth0' in the configuration bellow by the name of your
  9. # network interface and uncomment the line according to your needs
  10. ########################################################################
  11.  
  12. dynamic.10.name=net_received
  13. dynamic.10.source=/sys/class/net/eth0/statistics/rx_bytes
  14. dynamic.10.regexp=(.*)
  15. dynamic.10.postprocess=$1*-1
  16. dynamic.10.rrd=DERIVE
  17. dynamic.10.max=0
  18.  
  19. dynamic.11.name=net_send
  20. dynamic.11.source=/sys/class/net/eth0/statistics/tx_bytes
  21. dynamic.11.regexp=(.*)
  22. dynamic.11.postprocess=
  23. dynamic.11.rrd=DERIVE
  24. dynamic.11.min=0
  25.  
  26. web.status.1.content.8.name=Network
  27. web.status.1.content.8.icon=network.png
  28. #web.status.1.content.8.line.1="To activate network monitoring, edit and customize <font color='#AA0000'><b>network.conf</b></font>"
  29. #web.status.1.content.8.line.2="Help is available in man pages:"
  30. #web.status.1.content.8.line.3="<font color='#AA0000'><b>man rpimonitord</b></font> or <font color='#AA0000'><b>man rpimonitord.conf</b></font>"
  31. web.status.1.content.8.line.1="Ethernet Sent: <b>"+KMG(data.net_send)+"<i class='icon-arrow-up'></i></b> Received: <b>"+KMG(Math.abs(data.net_received)) + "<i class='icon-arrow-down'></i></b>"
  32.  
  33. web.statistics.1.content.2.name=Network
  34. web.statistics.1.content.2.graph.1=net_send
  35. web.statistics.1.content.2.graph.2=net_received
  36. web.statistics.1.content.2.graph_options.yaxis={ tickFormatter: function (v) { if (Math.abs(v) > 1048576) return (Math.round(v*10/1024/1024)/10) + " MiB/s" ; if (Math.abs(v) > 1024) return (Math.round(v*10/1024)/10) + " KiB/s" ; else return v + " B/s" }, }
  37. web.statistics.1.content.2.ds_graph_options.net_send.label=Upload bandwidth (bytes)
  38. web.statistics.1.content.2.ds_graph_options.net_send.lines={ fill: true }
  39. web.statistics.1.content.2.ds_graph_options.net_send.color="#FF7777"
  40. web.statistics.1.content.2.ds_graph_options.net_received.label=Download bandwidth (bytes)
  41. web.statistics.1.content.2.ds_graph_options.net_received.lines={ fill: true }
  42. web.statistics.1.content.2.7ds_graph_options.net_received.color="#77FF77"
Advertisement
RAW Paste Data Copied
Advertisement