1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51: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

@ -66,7 +66,7 @@ my @muninlabel = (
);
# ============= SANITY CHECKS ================
unless( defined(@ARGV) ){
unless( @ARGV ){
$ARGV[0] = "";
}

View file

@ -46,7 +46,7 @@ my @muninlabel = ( # General Runtime Information
);
# ============= SANITY CHECKS ================
unless( defined(@ARGV) ){
unless( @ARGV ){
$ARGV[0] = "";
}

View file

@ -78,7 +78,7 @@ my @muninlabel = (
);
# ============= SANITY CHECKS ================
unless( defined(@ARGV) ){
unless( @ARGV ){
$ARGV[0] = "";
}

View file

@ -56,7 +56,7 @@ my @muninlabel = (
);
# ============= SANITY CHECKS ================
unless( defined(@ARGV) ){
unless( @ARGV ){
$ARGV[0] = "";
}

View file

@ -46,7 +46,7 @@ my @muninlabel = ( # General Runtime Information
);
# ============= SANITY CHECKS ================
unless( defined(@ARGV) ){
unless( @ARGV ){
$ARGV[0] = "";
}

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)

View file

@ -166,7 +166,7 @@ if (defined($ENV{'beextratolerant'})) {
}
}
#print($sensordata->[0]);
foreach $k (keys($sensordata)) {
foreach $k (keys(%$sensordata)) {
if ($k =~ m/^n(\d+)$/) { # Special handling: Could be output from the OLD XML interface.
my $nr = $1;
if (defined($sensordata->{'s'.$nr})