added support for megatec ups - added better snmprec

This commit is contained in:
Jon
2016-10-23 02:49:15 +11:00
parent 9d0e1ae57f
commit 24bab6889e
3 changed files with 11 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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;

View File

@@ -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