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:
parent
58f0ab64f3
commit
9cd0bba835
9 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue