Skip to content

Commit

Permalink
Prefer ss over netstat
Browse files Browse the repository at this point in the history
For now let's keep netstat.

Signed-off-by: Asad Sajjad Ahmed <[email protected]>
  • Loading branch information
asadsa92 committed Oct 14, 2021
1 parent 2ca0d12 commit 5537465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion varnishgather
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TOPDIR=$(mktemp -d ${TMPDIR:-/tmp}/varnishgather.XXXXXXXX)
ID="$(cat /etc/hostname)-$(date +'%Y%m%d-%H%M%S')"
RELDIR="varnishgather-$ID"
ORIGPWD=$PWD
VERSION=1.91
VERSION=1.92
USERID=$(id -u)
PID_ALL_VARNISHD=$(pidof varnishd 2> /dev/null)
PID_ALL_VARNISHD_COMMA=$(pidof varnishd 2> /dev/null | sed 's/ /,/g')
Expand Down Expand Up @@ -452,6 +452,7 @@ mycat /proc/version
runpipe "ps aux" "egrep (varnish|vha-agent|vac|vstatd|vcs|apache|mysql|nginx|httpd|stud|hitch|stunnel|api-engine|broadcaster|mongod|varnish-controller)"
runpipe "netstat -np" "wc -l"
runpipe "netstat -np" "grep ESTABLISHED" "wc -l"
run ss -s
run uptime
run free -m
run vmstat -w 1 3
Expand Down

0 comments on commit 5537465

Please sign in to comment.