From 1fd1d01257d3e41aab5b0c13f2a103f56c02977c Mon Sep 17 00:00:00 2001 From: Brian Flowers Date: Mon, 19 Sep 2016 13:10:44 -0400 Subject: [PATCH] Hiding error messages on status check of plugins --- bdsm.d/df.generic | 4 ++-- bdsm.d/sensors.generic | 4 ++-- bdsm.d/vmstat.generic | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bdsm.d/df.generic b/bdsm.d/df.generic index 8e3b0a1..90cbe35 100755 --- a/bdsm.d/df.generic +++ b/bdsm.d/df.generic @@ -52,7 +52,7 @@ help() start() { - running=`ssh -q $HOSTNAME "cat /home/bdsm/.df.pid | \ + running=`ssh -q $HOSTNAME "cat /home/bdsm/.df.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` 2>/dev/null @@ -92,7 +92,7 @@ stop() status() { - running=`ssh $HOSTNAME "cat /home/bdsm/.df.pid | \ + running=`ssh $HOSTNAME "cat /home/bdsm/.df.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` diff --git a/bdsm.d/sensors.generic b/bdsm.d/sensors.generic index cc8a14a..9d74a79 100755 --- a/bdsm.d/sensors.generic +++ b/bdsm.d/sensors.generic @@ -48,7 +48,7 @@ help() start() { - running=`ssh -q $HOSTNAME "cat /home/bdsm/.sensors.pid | \ + running=`ssh -q $HOSTNAME "cat /home/bdsm/.sensors.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` 2>/dev/null @@ -104,7 +104,7 @@ stop() status() { - running=`ssh $HOSTNAME "cat /home/bdsm/.sensors.pid | \ + running=`ssh $HOSTNAME "cat /home/bdsm/.sensors.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` diff --git a/bdsm.d/vmstat.generic b/bdsm.d/vmstat.generic index 4afefe8..7af1e58 100755 --- a/bdsm.d/vmstat.generic +++ b/bdsm.d/vmstat.generic @@ -48,7 +48,7 @@ help() start() { - running=`ssh $HOSTNAME "cat /home/bdsm/.vmstat.pid | \ + running=`ssh $HOSTNAME "cat /home/bdsm/.vmstat.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` 2>/dev/null @@ -125,7 +125,7 @@ stop() status() { - running=`ssh $HOSTNAME "cat /home/bdsm/.vmstat.pid | \ + running=`ssh $HOSTNAME "cat /home/bdsm/.vmstat.pid 2>/dev/null | \ xargs ps -T | \ grep -v PID | \ wc -l"` -- 1.8.3.1