Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. ########################################################################
  2. # Extract Memory information
  3. # Page: 1
  4. # Information Status Statistics
  5. # - memory total - yes - yes
  6. # - memory free - yes - yes
  7. # - memory available - yes - yes
  8. ########################################################################
  9. static.5.name=memory_total
  10. static.5.source=/proc/meminfo
  11. static.5.regexp=MemTotal:\s+(\d+)
  12. static.5.postprocess=$1/1024
  13.  
  14. dynamic.9.name=memory_free
  15. dynamic.9.source=/proc/meminfo
  16. dynamic.9.regexp=MemFree:\s+(\d+)
  17. dynamic.9.postprocess=$1/1024
  18. dynamic.9.rrd=GAUGE
  19.  
  20. dynamic.15.name=memory_available
  21. dynamic.15.source=/usr/bin/free -mk
  22. #dynamic.15.regexp=^-\/\+ buffers\/cache:\s+\d+\s+(\d+)
  23. dynamic.15.regexp=Mem:\s+\d+\s+\d+\s+\s+\d+\s+\s+\d+\s+\d+\s+(\d+)
  24. dynamic.15.postprocess=$1/1024
  25. dynamic.15.rrd=GAUGE
  26.  
  27. web.status.1.content.5.name=Memory
  28. web.status.1.content.5.icon=memory.png
  29. web.status.1.content.5.line.1="Used: <b>" + KMG(data.memory_total-data.memory_available,'M') + "</b> (<b>" + Percent(data.memory_total-data.memory_available,data.memory_total,'M') + "</b>) Available: <b>" + KMG(data.memory_available,'M') + "</b> Total: <b>" + KMG(data.memory_total,'M') + "</b>"
  30. web.status.1.content.5.line.2=ProgressBar(data.memory_total-data.memory_available,data.memory_total)
  31.  
  32. web.statistics.1.content.6.name=Memory
  33. web.statistics.1.content.6.graph.1=memory_total
  34. web.statistics.1.content.6.graph.2=memory_free
  35. web.statistics.1.content.6.graph.3=memory_available
  36. web.statistics.1.content.6.ds_graph_options.memory_total.label=Total Memory(MB)
  37. web.statistics.1.content.6.ds_graph_options.memory_free.label=Free Memory (MB)
  38. web.statistics.1.content.6.ds_graph_options.memory_free.color="#7777FF"
  39. web.statistics.1.content.6.ds_graph_options.memory_available.label=Available Memory (MB)
  40. web.statistics.1.content.6.ds_graph_options.memory_available.color="#77FF77"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement