Updated support for adva_fsp150 devices (#10049)

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 5926`
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.
This commit is contained in:
PipoCanaja
2019-04-09 14:59:08 +02:00
committed by Neil Lathwood
parent 943dbe4ff1
commit 780ee36b10
5 changed files with 1820 additions and 5 deletions

View File

@@ -37,7 +37,7 @@
if ($pre_cache['adva_fsp150'][$index][$sensor_name]) {
$oid = $entry['sensor_oid'].".".$index;
$descr = $pre_cache['adva_fsp150'][$index]['slotCardUnitName']." [#".$pre_cache['adva_fsp150'][$index]['slotIndex']."]";
$current = $pre_cache['adva_fsp150'][$index][$entry]/$divisor;
$current = $pre_cache['adva_fsp150'][$index][$entry['sensor_name']]/$divisor;
discover_sensor(
$valid['sensor'],