tcp_conn.conf 699 B

1234567891011121314151617181920212223
  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: ip.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. summary: System TCP connections utilization
  20. info: IPv4 TCP connections utilization
  21. to: sysadmin