Fix QNAP os polling (#11938)

* Remove old qnap code.

* Fixed test
This commit is contained in:
TheGreatDoc
2020-07-18 00:14:16 +02:00
committed by GitHub
parent 334d50467c
commit 1a8c4df880
2 changed files with 1 additions and 22 deletions

View File

@ -154,10 +154,6 @@ if (in_array($device['os'], array("linux", "endian", "proxmox", "recoveryos")))
list(,,$version,$hardware,$freebsda, $freebsdb, $arch) = explode(" ", $device['sysDescr']);
$features = $freebsda . " " . $freebsdb;
$hardware = "$hardware ($arch)";
} elseif ($device['os'] == "qnap") {
$hardware = snmp_get($device, "ENTITY-MIB::entPhysicalName.1", "-Osqnv");
$version = snmp_get($device, "ENTITY-MIB::entPhysicalFirmwareRev.1", "-Osqnv");
$serial = snmp_get($device, "ENTITY-MIB::entPhysicalSerial.1", "-Osqnv");
} elseif ($device['os'] == "dsm") {
# This only gets us the build, not the actual version number, so won't use this.. yet.
# list(,,,$version,) = explode(" ",$device['sysDescr'],5);

View File

@ -18,24 +18,7 @@
}
]
},
"poller": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.24681",
"sysDescr": "Linux hostname 4.2.2",
"sysContact": null,
"version": "4.3.3",
"hardware": "Turbo NAS TVS-871U-RP",
"features": null,
"os": "qnap",
"type": "storage",
"serial": null,
"icon": "qnap.svg",
"location": null
}
]
}
"poller": "matches discovery"
},
"ports": {
"discovery": {