Fix ups-nut check (#13722)

Fixes #13719
This commit is contained in:
Jellyfrog
2022-01-28 12:07:34 +01:00
committed by GitHub
parent e8497cdfc6
commit 658fd7972b

View File

@@ -3,7 +3,7 @@
$oids = '.1.3.6.1.4.1.8072.1.3.2.4.1.2.7.117.112.115.45.110.117.116.8';
$value = snmp_get($device, $oids, '-Osqnv');
if (! empty($value)) {
if ($value !== false) {
$type = 'ups-nut';
$index = 8;
$limit = 100;