mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
added support for megatec ups - fixed new lines
This commit is contained in:
@@ -56,5 +56,4 @@ if ($device['os'] == 'megatec') {
|
|||||||
$current
|
$current
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
|
|
||||||
if ($device['os'] == 'megatec') {
|
if ($device['os'] == 'megatec') {
|
||||||
|
|
||||||
$in_frequency_oid = '.1.3.6.1.4.1.935.1.1.1.3.2.4.0';
|
$in_frequency_oid = '.1.3.6.1.4.1.935.1.1.1.3.2.4.0';
|
||||||
$in_frequency = snmp_get($device, $in_frequency_oid, '-Oqv');
|
$in_frequency = snmp_get($device, $in_frequency_oid, '-Oqv');
|
||||||
|
|
||||||
@@ -60,7 +59,7 @@ if ($device['os'] == 'megatec') {
|
|||||||
|
|
||||||
$out_frequency_oid = '.1.3.6.1.4.1.935.1.1.1.4.2.2.0';
|
$out_frequency_oid = '.1.3.6.1.4.1.935.1.1.1.4.2.2.0';
|
||||||
$out_frequency = snmp_get($device, $frequency_oid, '-Oqv');
|
$out_frequency = snmp_get($device, $frequency_oid, '-Oqv');
|
||||||
|
|
||||||
if (!empty($out_frequency) || $out_frequency == 0) {
|
if (!empty($out_frequency) || $out_frequency == 0) {
|
||||||
$type = 'megatec';
|
$type = 'megatec';
|
||||||
$index = 0;
|
$index = 0;
|
||||||
@@ -89,5 +88,4 @@ if ($device['os'] == 'megatec') {
|
|||||||
$frequency
|
$frequency
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|||||||
@@ -56,5 +56,4 @@ if ($device['os'] == 'megatec') {
|
|||||||
$load
|
$load
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|||||||
@@ -56,5 +56,4 @@ if ($device['os'] == 'megatec') {
|
|||||||
$temperature
|
$temperature
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|||||||
@@ -88,5 +88,4 @@ if ($device['os'] == 'megatec') {
|
|||||||
$voltage
|
$voltage
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|||||||
Reference in New Issue
Block a user