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