mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
added support for megatec ups - added better snmprec
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
if ($device['os'] == 'netagent2') {
|
||||
$battery_current_oid = '.1.3.6.1.4.1.935.1.1.1.3.2.1.0';
|
||||
$battery_current_oid = '.1.3.6.1.4.1.935.1.1.1.2.2.7.0';
|
||||
$battery_current = snmp_get($device, $battery_current_oid, '-Oqv');
|
||||
|
||||
if (!empty($battery_current) || $battery_current == 0) {
|
||||
|
@@ -31,8 +31,8 @@ if ($device['os'] == 'netagent2') {
|
||||
if (!empty($ups_temperature) || $ups_temperature == 0) {
|
||||
$type = 'netagent2';
|
||||
$index = 0;
|
||||
$limit = 50;
|
||||
$warnlimit = 40;
|
||||
$limit = 110;
|
||||
$warnlimit = 50;
|
||||
$lowlimit = 0;
|
||||
$lowwarnlimit = 6;
|
||||
$divisor = 10;
|
||||
|
@@ -1,2 +1,10 @@
|
||||
1.3.6.1.2.1.1.1.0|4|NET Agent II
|
||||
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.935
|
||||
1.3.6.1.4.1.935.1.1.1.2.2.1.0|2|100
|
||||
1.3.6.1.4.1.935.1.1.1.2.2.7.0|2|0
|
||||
1.3.6.1.4.1.935.1.1.1.3.2.4.0|2|500
|
||||
1.3.6.1.4.1.935.1.1.1.4.2.2.0|2|500
|
||||
1.3.6.1.4.1.935.1.1.1.4.2.3.0|2|44
|
||||
1.3.6.1.4.1.935.1.1.1.2.2.3.0|2|250
|
||||
1.3.6.1.4.1.935.1.1.1.3.2.1.0|2|2545
|
||||
1.3.6.1.4.1.935.1.1.1.4.2.1.0|2|2285
|
Reference in New Issue
Block a user