tcp_conn.conf 655 B

12345678910111213141516171819202122
  1. #
  2. # ${tcp_max_connections} may be nan or -1 if the system
  3. # supports dynamic threshold for TCP connections.
  4. # In this case, the alarm will always be zero.
  5. #
  6. alarm: tcp_connections
  7. on: ipv4.tcpsock
  8. class: Workload
  9. type: System
  10. component: Network
  11. os: linux
  12. hosts: *
  13. calc: (${tcp_max_connections} > 0) ? ( ${connections} * 100 / ${tcp_max_connections} ) : 0
  14. units: %
  15. every: 10s
  16. warn: $this > (($status >= $WARNING ) ? ( 60 ) : ( 80 ))
  17. crit: $this > (($status == $CRITICAL) ? ( 80 ) : ( 90 ))
  18. delay: up 0 down 5m multiplier 1.5 max 1h
  19. info: IPv4 TCP connections utilization
  20. to: sysadmin