Skip to content

Commit b5ca91f

Browse files
committed
Merge branch 'master' of github.com:drscream/smartos-munin-plugins
2 parents 8df640a + 6891803 commit b5ca91f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tcp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,33 @@ graph_vlabel connections
1313
graph_args --base 1000 -l 0
1414
graph_info This graph shows the TCP connections states of all the network interfaces combined
1515
CLOSED.label CLOSED
16+
CLOSED.colour COLOUR3
1617
IDLE.label IDLE
18+
IDLE.colour COLOUR6
1719
BOUND.label BOUND
20+
BOUND.colour COLOUR12
1821
LISTEN.label LISTEN
22+
LISTEN.colour COLOUR0
1923
SYN_SENT.label SYN_SENT
2024
SYN_RCVD.label SYN_RCVD
2125
ESTABLISHED.label ESTABLISHED
26+
ESTABLISHED.colour COLOUR1
2227
CLOSE_WAIT.label CLOSE_WAIT
2328
FIN_WAIT_1.label FIN_WAIT_1
2429
CLOSING.label CLOSING
2530
LAST_ACK.label LAST_ACK
2631
FIN_WAIT_2.label FIN_WAIT_2
2732
TIME_WAIT.label TIME_WAIT
33+
TIME_WAIT.colour COLOUR2
2834
EOF
2935
exit 0
3036
fi
3137

3238
netstat -an -P tcp -f inet -f inet6 | awk '
33-
NF < 1 { header = NR} header + 3 < NR {
39+
NF < 1 {
40+
header = NR
41+
}
42+
header + 3 < NR {
3443
states[$7]++
3544
}
3645
BEGIN {

0 commit comments

Comments
 (0)