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