File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -13,24 +13,33 @@ graph_vlabel connections
1313graph_args --base 1000 -l 0
1414graph_info This graph shows the TCP connections states of all the network interfaces combined
1515CLOSED.label CLOSED
16+ CLOSED.colour COLOUR3
1617IDLE.label IDLE
18+ IDLE.colour COLOUR6
1719BOUND.label BOUND
20+ BOUND.colour COLOUR12
1821LISTEN.label LISTEN
22+ LISTEN.colour COLOUR0
1923SYN_SENT.label SYN_SENT
2024SYN_RCVD.label SYN_RCVD
2125ESTABLISHED.label ESTABLISHED
26+ ESTABLISHED.colour COLOUR1
2227CLOSE_WAIT.label CLOSE_WAIT
2328FIN_WAIT_1.label FIN_WAIT_1
2429CLOSING.label CLOSING
2530LAST_ACK.label LAST_ACK
2631FIN_WAIT_2.label FIN_WAIT_2
2732TIME_WAIT.label TIME_WAIT
33+ TIME_WAIT.colour COLOUR2
2834EOF
2935 exit 0
3036fi
3137
3238netstat -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}
3645BEGIN {
You can’t perform that action at this time.
0 commit comments