tcp_mem.conf 755 B

123456789101112131415161718192021222324
  1. #
  2. # check
  3. # http://blog.tsunanet.net/2011/03/out-of-socket-memory.html
  4. #
  5. # We give a warning when TCP is under memory pressure
  6. # and a critical when TCP is 90% of its upper memory limit
  7. #
  8. alarm: tcp_memory
  9. on: ipv4.sockstat_tcp_mem
  10. class: Utilization
  11. type: System
  12. component: Network
  13. os: linux
  14. hosts: *
  15. calc: ${mem} * 100 / ${tcp_mem_high}
  16. units: %
  17. every: 10s
  18. warn: ${mem} > (($status >= $WARNING ) ? ( ${tcp_mem_pressure} * 0.8 ) : ( ${tcp_mem_pressure} ))
  19. crit: ${mem} > (($status == $CRITICAL ) ? ( ${tcp_mem_pressure} ) : ( ${tcp_mem_high} * 0.9 ))
  20. delay: up 0 down 5m multiplier 1.5 max 1h
  21. summary: System TCP memory utilization
  22. info: TCP memory utilization
  23. to: silent