mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rename Ceragon to CeraOS and add version and serial detection
This commit is contained in:
@@ -795,9 +795,9 @@ $config['os'][$os]['text'] = 'ZTE ZXR10';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'zte';
|
||||
|
||||
// Ceragon
|
||||
$os = 'ceragon';
|
||||
$config['os'][$os]['text'] = 'Ceargon';
|
||||
// Ceragon CeraOS
|
||||
$os = 'ceraos';
|
||||
$config['os'][$os]['text'] = 'Ceragon CeraOS';
|
||||
$config['os'][$os]['type'] = 'wireless';
|
||||
$config['os'][$os]['icon'] = 'ceragon';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
$genEquipInventoryCardName = snmp_get($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName.127', '-Osqnv');
|
||||
|
||||
if (preg_match('/IP-[1,2]0/', $genEquipInventoryCardName)) {
|
||||
$os = 'ceragon';
|
||||
$os = 'ceraos';
|
||||
}
|
||||
+3
-3
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] == 'ceragon') {
|
||||
if ($device['os'] == 'ceraos') {
|
||||
$mib = 'MWRM-UNIT-MIB::genEquipUnitIduTemperature.0';
|
||||
$oid = ' .1.3.6.1.4.1.2281.10.1.1.9.0';
|
||||
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
|
||||
d_echo($oids."\n");
|
||||
|
||||
if (!empty($oids)) {
|
||||
echo ' Ceragon Temperature ';
|
||||
echo ' Ceragon CeraOS Temperature ';
|
||||
|
||||
$divisor = 1;
|
||||
$type = 'ceragon';
|
||||
$type = 'ceraos';
|
||||
|
||||
list(,$current) = explode(' ', $oids);
|
||||
$index = $oid;
|
||||
+3
-3
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
|
||||
if ($device['os'] == 'ceragon') {
|
||||
if ($device['os'] == 'ceraos') {
|
||||
$mib = 'MWRM-UNIT-MIB::genEquipUnitIduVoltageInput.0';
|
||||
$oid = '.1.3.6.1.4.1.2281.10.1.1.10.0';
|
||||
$oids = snmp_get($device, $mib, '-OsqnU', 'MWRM-UNIT-MIB');
|
||||
d_echo($oids."\n");
|
||||
|
||||
if (!empty($oids)) {
|
||||
echo ' Ceragon Voltage ';
|
||||
echo ' Ceragon CeraOS Voltage ';
|
||||
|
||||
$divisor = 1;
|
||||
$type = 'ceragon';
|
||||
$type = 'ceraos';
|
||||
|
||||
list(,$current) = explode(' ', $oids);
|
||||
$index = $oid;
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
$hardware = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipInventoryCardName', '-Osqnv');
|
||||
$serial = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipInventorySerialNumber', '-Osqnv');
|
||||
$version = snmp_walk($device, 'MWRM-UNIT-MIB::genEquipMngSwIDUVersionsRunningVersion.1', '-Osqnv');
|
||||
Reference in New Issue
Block a user