Build precise queries to find exactly what you need
Press ESC to close
@ffuchs
Favorites0
Views0
Projects3
Works excellent! Thanks a lot!
Reviewed 9 years ago
The plugin works great. However, I found one bug. The check, if a machine is in maintenance mode, does not work. It will always return the value you use for querying. E.g. if you add the paramter "mainwarn", it will always return WARNING regardless of the state of the machine. The fix is quite easy. Just add "&& $runtime->inMaintenanceMode eq "1")" in the if-statements: 2280 if ($addopts eq "maintwarn" && $runtime->inMaintenanceMode eq "1") { 2281 $res = WARNING; 2282 } 2283 elsif ($addopts eq "maintcrit" && $runtime->inMaintenanceMode eq "1") { 2284 $res = CRITICAL; 2285 }