From c70d12c83c00e180da8a7e8281acdbd8e4741fa1 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Fri, 22 Jul 2016 15:22:48 -0500 Subject: [PATCH] Remove duplicate nfsstats file --- agent-local/nfsstats.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 agent-local/nfsstats.sh diff --git a/agent-local/nfsstats.sh b/agent-local/nfsstats.sh deleted file mode 100644 index dc8cf02..0000000 --- a/agent-local/nfsstats.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -############################################################# -# - put this file on the nfs server somewhere like /opt/ # -# - edit your snmpd.conf and add line # -# extend nfsstat /opt/nfsstats.sh # -# - restart snmpd # -# - make sure that you have all the binaries required below # -############################################################# - -CFG_NFSVER='3' -BIN_NFSSTAT='/usr/sbin/nfsstat' -BIN_TR='/usr/bin/tr' -BIN_CUT='/usr/bin/cut' -BIN_GREP='/usr/bin/grep' -BIN_PASTE='/usr/bin/paste' -BIN_RM='/usr/bin/rm' -BIN_MV='/usr/bin/mv' -LOG_OLD='/tmp/nfsstats_old' -LOG_NEW='/tmp/nfsstats_new' - -$BIN_NFSSTAT -$CFG_NFSVER -n -l | $BIN_TR -s " " | $BIN_CUT -d ' ' -f 5 | $BIN_GREP -v '^$' > $LOG_NEW 2>&1 - -$BIN_PASTE $LOG_NEW $LOG_OLD | while read a b ; do - echo $(($a - $b)) -done - -$BIN_RM $LOG_OLD 2>&1 -$BIN_MV $LOG_NEW $LOG_OLD 2>&1