mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
84fdfdf542
* Junos dwdm interface sensor support …
four new sensors
Chromatic Dispersion ps/nm
Delay s (seconds)
Q_factor (dB)
preFEC_BER (ratio)
reuse of
SNR, dbm, temperature, current
* new dwdm sensors more generic, ber and quality_factor
* new sensors updated
* renamed html graphs new sensors
* fixed ber polling
* Change to base SI Hz and s.
* update sensor divisors to bigint
* rename sql-schema/216.sql to 218.sql
* YAML junos dwmd sensor definitions, except BER
* bigint divisor fixed
* deafult 1 divisior
* small fixes including schema change for another PR
* schema fix
10 lines
300 B
PHP
10 lines
300 B
PHP
<?php
|
|
|
|
if ($device['os'] == 'junos') {
|
|
echo 'JunOS: ';
|
|
|
|
$sensor_exp_value = snmp_get($device, 'JNX-OPT-IF-EXT-MIB::jnxoptIfOTNPMCurrentFECBERExponent.'.$sensor['sensor_index'].'.1', '-Oqv');
|
|
$sensor_value = ($sensor_value/100)*pow(10, -$sensor_exp_value);
|
|
unset($sensor_exp_value);
|
|
}
|