| 1 | # you can disable an alarm notification by setting the 'to' line to: silent |
| 2 | |
| 3 | # ${tcp_max_connections} may be nan or -1 if the system |
| 4 | # supports dynamic threshold for TCP connections. |
| 5 | # In this case, the alarm will always be zero. |
| 6 | |
| 7 | alarm: tcp_connections |
| 8 | on: ip.tcpsock |
| 9 | class: Workload |
| 10 | type: System |
| 11 | component: Network |
| 12 | host labels: _os=linux |
| 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 |