mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +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
|
@ -66,7 +66,7 @@ my @muninlabel = (
|
||||||
);
|
);
|
||||||
|
|
||||||
# ============= SANITY CHECKS ================
|
# ============= SANITY CHECKS ================
|
||||||
unless( defined(@ARGV) ){
|
unless( @ARGV ){
|
||||||
$ARGV[0] = "";
|
$ARGV[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ my @muninlabel = ( # General Runtime Information
|
||||||
);
|
);
|
||||||
|
|
||||||
# ============= SANITY CHECKS ================
|
# ============= SANITY CHECKS ================
|
||||||
unless( defined(@ARGV) ){
|
unless( @ARGV ){
|
||||||
$ARGV[0] = "";
|
$ARGV[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ my @muninlabel = (
|
||||||
);
|
);
|
||||||
|
|
||||||
# ============= SANITY CHECKS ================
|
# ============= SANITY CHECKS ================
|
||||||
unless( defined(@ARGV) ){
|
unless( @ARGV ){
|
||||||
$ARGV[0] = "";
|
$ARGV[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ my @muninlabel = (
|
||||||
);
|
);
|
||||||
|
|
||||||
# ============= SANITY CHECKS ================
|
# ============= SANITY CHECKS ================
|
||||||
unless( defined(@ARGV) ){
|
unless( @ARGV ){
|
||||||
$ARGV[0] = "";
|
$ARGV[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ my @muninlabel = ( # General Runtime Information
|
||||||
);
|
);
|
||||||
|
|
||||||
# ============= SANITY CHECKS ================
|
# ============= SANITY CHECKS ================
|
||||||
unless( defined(@ARGV) ){
|
unless( @ARGV ){
|
||||||
$ARGV[0] = "";
|
$ARGV[0] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ quake_stat() {
|
||||||
port=$3
|
port=$3
|
||||||
fi
|
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}")
|
dummy=$("$qstat_exe" -raw ";" -nh "-$gametype" "${ip}:${port}")
|
||||||
|
|
||||||
playervalue=$(echo "$dummy" | cut -d\; -f6)
|
playervalue=$(echo "$dummy" | cut -d\; -f6)
|
||||||
|
|
|
@ -60,7 +60,7 @@ quake_stat() {
|
||||||
port=$3
|
port=$3
|
||||||
fi
|
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)
|
stat_output=$("$qstat_exe" -P -pa -sort P "-$gametype" "${ip}:${port}" | grep frags)
|
||||||
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
|
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
|
||||||
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)
|
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)
|
||||||
|
|
|
@ -60,7 +60,7 @@ quake_stat() {
|
||||||
port=$3
|
port=$3
|
||||||
fi
|
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)
|
stat_output=$("$qstat_exe" -P -pa -sort P "-${gametype}" "${ip}:${port}" | grep team)
|
||||||
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
|
playervalue=$(echo "$stat_output" | grep -cwv 0ms)
|
||||||
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)
|
maxplayervalue=$(echo "$stat_output" | grep -cw 0ms)
|
||||||
|
|
|
@ -166,7 +166,7 @@ if (defined($ENV{'beextratolerant'})) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#print($sensordata->[0]);
|
#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.
|
if ($k =~ m/^n(\d+)$/) { # Special handling: Could be output from the OLD XML interface.
|
||||||
my $nr = $1;
|
my $nr = $1;
|
||||||
if (defined($sensordata->{'s'.$nr})
|
if (defined($sensordata->{'s'.$nr})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue