1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

fix plugins for new rules

This commit is contained in:
Steve Schnepp 2019-07-27 20:50:08 +02:00
parent 58f0ab64f3
commit 9cd0bba835
9 changed files with 9 additions and 9 deletions

View file

@ -60,7 +60,7 @@ quake_stat() {
port=$3
fi
if [ ! -z "$gametype" ] && [ ! -z "$gametype" ] && [ ! -z "$gametype" ]; then
if [ -n "$gametype" ] && [ -n "$gametype" ] && [ -n "$gametype" ]; then
dummy=$("$qstat_exe" -raw ";" -nh "-$gametype" "${ip}:${port}")
playervalue=$(echo "$dummy" | cut -d\; -f6)

View file

@ -60,7 +60,7 @@ quake_stat() {
port=$3
fi
if [ ! -z "$gametype" ] && [ ! -z "$gametype" ] && [ ! -z "$gametype" ]; then
if [ -n "$gametype" ] && [ -n "$gametype" ] && [ -n "$gametype" ]; then
stat_output=$("$qstat_exe" -P -pa -sort P "-$gametype" "${ip}:${port}" | grep frags)
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)

View file

@ -60,7 +60,7 @@ quake_stat() {
port=$3
fi
if [ ! -z "$gametype" ] && [ ! -z "$gametype" ] && [ ! -z "$gametype" ]; then
if [ -n "$gametype" ] && [ -n "$gametype" ] && [ -n "$gametype" ]; then
stat_output=$("$qstat_exe" -P -pa -sort P "-${gametype}" "${ip}:${port}" | grep team)
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)