diff --git a/plugins/network/tcp-retransmissions b/plugins/network/tcp-retransmissions index 1b97b6e7..085695a4 100755 --- a/plugins/network/tcp-retransmissions +++ b/plugins/network/tcp-retransmissions @@ -1,27 +1,36 @@ -#!/bin/bash +#!/bin/sh + +# tcp_retries revision 2 (Feb 2012) +# +# TCP retransmission rate. Useful for network debugging. +# +# Required privileges: none +# +# OS: Linux with procfs +# +# Author: Artem Sheremet +# + +#%# family=auto +#%# capabilities=autoconf + +TCPSTAT=/proc/net/tcp case $1 in + autoconf) + [ -r $TCPSTAT -o -r ${TCPSTAT}6 ] && echo "yes" || echo "no" + ;; config) - cat <