mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Meraki MS: add serial number (#9768)
* added line to merakims.inc.php to properly code serial # in devices table * Update merakims.inc.php * Update merakims.snmprec * Create merakims.json * Update merakims.inc.php * Update merakims.inc.php
This commit is contained in:
@@ -13,3 +13,5 @@
|
||||
if (empty($hardware)) {
|
||||
$hardware = $device['sysDescr'];
|
||||
}
|
||||
// ENTITY-MIB::entPhysicalSerialNum
|
||||
$serial = snmp_getnext($device, '.1.3.6.1.2.1.47.1.1.1.1.11', '-Oqv', 'ENTITY-MIB');
|
||||
|
40
tests/data/merakims.json
Normal file
40
tests/data/merakims.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": null,
|
||||
"sysDescr": "Meraki MS",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "merakims",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "meraki.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": null,
|
||||
"sysDescr": "Meraki MS",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "Meraki MS",
|
||||
"features": null,
|
||||
"os": "merakims",
|
||||
"type": "network",
|
||||
"serial": "9999999999",
|
||||
"icon": "meraki.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@@ -1 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Meraki MS
|
||||
1.3.6.1.2.1.47.1.1.1.1.11.1|4|9999999999
|
||||
|
Reference in New Issue
Block a user