librenms/tests/data/opnsense_1.json
FingerlessGloves f34f552c57
OPNsense poller better reporting of Version and Platform (#11350)
* OPNsense better reporting of Version and Platform

OPNsense can now report exact version and platform, if the settings in OPNsense is ticked "Display Verion in OID".

* OPNsense poller change to better type check

OPNsense poller change to better type check on $OIDVersionString, which returns false if not found but contains string if it is.

* Add missing bracket to if statement

Add missing bracket to if statement on $OIDVersionString

* OPNsense poll add required spaces to function call

OPNsense poller add required spaces to function call, for coding style checks to pass.

* OPNsense test data json files

OPNsense test data json files
2020-04-01 20:12:55 +02:00

41 lines
1.4 KiB
JSON

{
"os": {
"discovery": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.8",
"sysDescr": "FreeBSD fw1-eri1.OPN 11.2-RELEASE-p16-HBSD FreeBSD 11.2-RELEASE-p16-HBSD fc65add89c3(stable/20.1) amd64",
"sysContact": null,
"version": null,
"hardware": null,
"features": null,
"os": "opnsense",
"type": "firewall",
"serial": null,
"icon": "opnsense.png",
"location": null
}
]
},
"poller": {
"devices": [
{
"sysName": "",
"sysObjectID": ".1.3.6.1.4.1.8072.3.2.8",
"sysDescr": "FreeBSD fw1-eri1.OPN 11.2-RELEASE-p16-HBSD FreeBSD 11.2-RELEASE-p16-HBSD fc65add89c3(stable/20.1) amd64",
"sysContact": null,
"version": "20.1.2",
"hardware": "amd64/OpenSSL",
"features": null,
"os": "opnsense",
"type": "firewall",
"serial": null,
"icon": "opnsense.png",
"location": null
}
]
}
}
}