Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-plugins-check_multi
> 0274b746e6350ac80b9b4d6a2c89543f4da621b9.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0274b746e6350ac80b9b4d6a2c89543f4da621b9.patch of Package nagios-plugins-check_multi
--- check_multi-0.26/plugins/check_multi.in.orig 2011-11-18 20:28:13.000000000 +0100 +++ check_multi-0.26/plugins/check_multi.in 2019-10-18 08:18:57.740468208 +0200 @@ -1227,7 +1227,7 @@ } while (<OBJECTS_CACHE>) { #--- begin of object, determine type - if (/^define ([a-z0-9\_\-]+) {$/) { + if (/^define ([a-z0-9\_\-]+) \{$/) { $type="$1"; $typelist{$type}++; $objectcount++; @@ -3217,7 +3217,7 @@ #--- some debugging first DEBUG4("MULTI Environment (sorted):\n\t".join("\n\t",get_env_vars('^MULTI'))); - DEBUG4("${NAGIOS} Environment (sorted):\n\t".join("\n\t",get_env_vars('^${NAGIOS}'))); + DEBUG4("${NAGIOS} Environment (sorted):\n\t".join("\n\t",get_env_vars('^$\{NAGIOS}'))); #--- construction site for persistence if ($opt{set}{test} && $opt{set}{persistent}) { @@ -4050,7 +4050,7 @@ } $error.= "$label: bad value \'$value\' in data \'$data\' " if ($value && $value !~/^[-0-9.]+$/); - $error.= "$label: bad UOM \'$uom\' in data \'$data\' " if ($uom ne "" && ($uom!~/^[um]*s$/i && $uom!~/^%$/ && $uom!~/^[kmgt]*b$/i && $uom!~/^c$/i)); + $error.= "$label: bad UOM \'$uom\' in data \'$data\' " if ($uom ne "" && ($uom!~/^[um]*s$/i && $uom!~/^%$/ && $uom!~/^[kmgt]?i*b$/i && $uom!~/^c$/i)); $error.= "$label: bad warning \'$warning\' in data \'$data\' " if ($warning && $warning !~/^[\@\~]?[-0-9.:]+$/); $error.= "$label: bad critical \'$critical\' in data \'$data\' " if ($critical && $critical !~/^[\@\~]?[-0-9.:]+$/); $error.= "$label: bad min \'$min\' in data \'$data\' " if ($min && $min !~/^[-0-9.]+$/);