mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixes #9718 This PR adds POE graphs, even if not all the values that are polled on other OSes are available on this one. DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [X] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 10075` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
12 lines
658 B
PHP
12 lines
658 B
PHP
<?php
|
|
// Linksys OS details
|
|
|
|
$data = snmp_get_multi($device, ['rlPhdUnitGenParamModelName.1', 'rlPhdUnitGenParamHardwareVersion.1', 'rlPhdUnitGenParamSerialNum.1', 'rlPhdUnitGenParamSoftwareVersion.1', 'rlPhdUnitGenParamFirmwareVersion.1'], '-OQUs', 'LINKSYS-Physicaldescription-MIB');
|
|
$hardware = $data['1']['rlPhdUnitGenParamModelName'];
|
|
if ($data['1']['rlPhdUnitGenParamHardwareVersion']) {
|
|
$hardware .= " " . $data['1']['rlPhdUnitGenParamHardwareVersion'];
|
|
}
|
|
$serial = $data['1']['rlPhdUnitGenParamSerialNum'];
|
|
$version = "SW: " . $data['1']['rlPhdUnitGenParamSoftwareVersion'];
|
|
$version .= ", FW: " . $data['1']['rlPhdUnitGenParamFirmwareVersion'];
|