mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changes to be committed:
modified: includes/definitions.inc.php modified: includes/discovery/os/metronid.inc.php modified: includes/discovery/processors/metronid.inc.php modified: includes/discovery/sensors/temperatures/metronid.inc.php renamed: includes/polling/os/accedian.inc.php -> includes/polling/os/aen.inc.php
This commit is contained in:
@@ -772,7 +772,7 @@ $config['os'][$os]['over'][1]['text'] = 'CPU Usage';
|
||||
$config['os'][$os]['over'][2]['graph'] = 'device_mempool';
|
||||
$config['os'][$os]['over'][2]['text'] = 'Memory Usage';
|
||||
|
||||
$os = 'accedian';
|
||||
$os = 'aen';
|
||||
$config['os'][$os]['text'] = 'Accedian AEN';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'accedian';
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
|
||||
if (!$os) {
|
||||
if (preg_match('/AMN-/', $sysDescr)) {
|
||||
$os = 'accedian';
|
||||
$os = 'aen';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,18 +14,18 @@
|
||||
|
||||
|
||||
|
||||
if ($device['os'] == 'accedian') {
|
||||
if ($device['version'] == 'AEN_5.3.1_22558') {
|
||||
} // don't poll 5.3.1_22558 devices due to bug that crashes snmpd
|
||||
else {
|
||||
echo 'Accedian MetroNID:';
|
||||
$descr = 'Processor';
|
||||
$usage = snmp_get($device, '.1.3.6.1.4.1.22420.1.1.20.0', '-Ovq');
|
||||
$usage = trim($usage, "percent");
|
||||
echo "usage";
|
||||
if ($device['os'] == 'aen') {
|
||||
if ($device['version'] == 'AEN_5.3.1_22558') {
|
||||
} // don't poll v5.3.1_22558 devices due to bug that crashes snmpd
|
||||
else {
|
||||
echo 'Accedian MetroNID:';
|
||||
$descr = 'Processor';
|
||||
$usage = snmp_get($device, '.1.3.6.1.4.1.22420.1.1.20.0', '-Ovq');
|
||||
$usage = trim($usage, "percent");
|
||||
echo "usage";
|
||||
|
||||
if (is_numeric($usage)) {
|
||||
discover_processor($valid['processor'], $device, '.1.3.6.1.4.1.22420.1.1.20.0', '0', 'accedian', $descr, '1', $usage, null, null);
|
||||
if (is_numeric($usage)) {
|
||||
discover_processor($valid['processor'], $device, '.1.3.6.1.4.1.22420.1.1.20.0', '0', 'aen', $descr, '1', $usage, null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
|
||||
if ($device['os'] == 'accedian') {
|
||||
if ($device['os'] == 'aen') {
|
||||
echo("Accedian MetroNID");
|
||||
|
||||
// Chassis temperature
|
||||
|
||||
Reference in New Issue
Block a user