tcp_orphans.conf 635 B

123456789101112131415161718192021222324
  1. #
  2. # check
  3. # http://blog.tsunanet.net/2011/03/out-of-socket-memory.html
  4. #
  5. # The kernel may penalize orphans by 2x or even 4x
  6. # so we alarm warning at 25% and critical at 50%
  7. #
  8. alarm: tcp_orphans
  9. on: ipv4.sockstat_tcp_sockets
  10. class: Errors
  11. type: System
  12. component: Network
  13. os: linux
  14. hosts: *
  15. calc: ${orphan} * 100 / ${tcp_max_orphans}
  16. units: %
  17. every: 10s
  18. warn: $this > (($status >= $WARNING ) ? ( 20 ) : ( 25 ))
  19. crit: $this > (($status == $CRITICAL) ? ( 25 ) : ( 50 ))
  20. delay: up 0 down 5m multiplier 1.5 max 1h
  21. info: orphan IPv4 TCP sockets utilization
  22. to: sysadmin