mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
fix sensors (maybe)
git-svn-id: http://www.observium.org/svn/observer/trunk@2236 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
global $valid_sensor;
|
||||
|
||||
|
||||
if ($device['os'] == "netvision")
|
||||
{
|
||||
@@ -16,7 +16,7 @@ if ($device['os'] == "netvision")
|
||||
$warnlimit = NULL;
|
||||
$limit = NULL;
|
||||
|
||||
discover_sensor($valid_sensor, 'current', $device, $current_oid, $index, $type, $descr, '10', '1', $lowlimit, NULL, NULL, NULL, $current);
|
||||
discover_sensor($valid['sensor'], 'current', $device, $current_oid, $index, $type, $descr, '10', '1', $lowlimit, NULL, NULL, NULL, $current);
|
||||
}
|
||||
|
||||
for ($i = 1; $i <= 3; $i++)
|
||||
@@ -31,7 +31,7 @@ if ($device['os'] == "netvision")
|
||||
$warnlimit = NULL;
|
||||
$limit = NULL;
|
||||
|
||||
discover_sensor($valid_sensor, 'current', $device, $current_oid, $index, $type, $descr, '10', '1', $lowlimit, NULL, NULL, NULL, $current);
|
||||
discover_sensor($valid['sensor'], 'current', $device, $current_oid, $index, $type, $descr, '10', '1', $lowlimit, NULL, NULL, NULL, $current);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user