From 55374656163341badd8827d43d9233982d844394 Mon Sep 17 00:00:00 2001 From: Asad Sajjad Ahmed Date: Thu, 14 Oct 2021 13:04:48 +0200 Subject: [PATCH] Prefer ss over netstat For now let's keep netstat. Signed-off-by: Asad Sajjad Ahmed --- varnishgather | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnishgather b/varnishgather index a3e671a..c5f89bb 100755 --- a/varnishgather +++ b/varnishgather @@ -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') @@ -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