awplus sensor fixes (#16348)

* awplus sensor fixes

* Update test data
This commit is contained in:
Tony Murray
2024-09-02 22:26:02 -05:00
committed by GitHub
parent 64c0d6ff7f
commit d8097b0c21
6 changed files with 42 additions and 42 deletions

View File

@@ -23,12 +23,12 @@ if ($pre_cache['awplus-sfpddm']) {
'atPluggableDiagTxBiasStatusReading',
'SFP:' . $descr,
$divisor,
null, // $multiplier,
1,
$low_limit,
$low_warn_limit,
$high_warn_limit,
$high_limit,
$value,
$data['atPluggableDiagTxBiasStatusReading'] / $divisor,
'snmp',
$ifIndex,
null,

View File

@@ -23,12 +23,12 @@ if ($pre_cache['awplus-sfpddm']) {
'atPluggableDiagTxPowerStatusReading',
'SFP:' . $descr,
$divisor,
null, // $multiplier,
1,
$low_limit,
$low_warn_limit,
$high_warn_limit,
$high_limit,
$value,
$data['atPluggableDiagTxPowerStatusReading'] / $divisor,
'snmp',
$ifIndex,
null,
@@ -59,12 +59,12 @@ if ($pre_cache['awplus-sfpddm']) {
'atPluggableDiagRxPowerStatusReading',
'SFP:' . $descr,
$divisor,
null, // $multiplier,
1,
$low_limit,
$low_warn_limit,
$high_warn_limit,
$high_limit,
$value,
$data['atPluggableDiagRxPowerStatusReading'] / $divisor,
'snmp',
$ifIndex,
null,

View File

@@ -23,12 +23,12 @@ if ($pre_cache['awplus-sfpddm']) {
'atPluggableDiagTempStatusReading',
'SFP:' . $descr,
$divisor,
null, // $multiplier,
1,
$low_limit,
$low_warn_limit,
$high_warn_limit,
$high_limit,
$value,
$data['atPluggableDiagTempStatusReading'] / $divisor,
'snmp',
$ifIndex,
null,

View File

@@ -23,12 +23,12 @@ if ($pre_cache['awplus-sfpddm']) {
'atPluggableDiagVccStatusReading',
'SFP:' . $descr,
$divisor,
null, // $multiplier,
1,
$low_limit,
$low_warn_limit,
$high_warn_limit,
$high_limit,
$value,
$data['atPluggableDiagVccStatusReading'] / $divisor,
'snmp',
$ifIndex,
null,

View File

@@ -13,11 +13,11 @@
use LibreNMS\RRD\RrdDefinition;
$tmp_module = 'ntp';
$type = 'ntp';
$component = new LibreNMS\Component();
$options = [];
$options['filter']['type'] = ['=', $tmp_module];
$options['filter']['type'] = ['=', $type];
$options['filter']['disabled'] = ['=', 0];
$options['filter']['ignore'] = ['=', 0];
@@ -60,7 +60,7 @@ if ($components) {
$rrd['delay'] = str_replace(' milliseconds', '', $rrd['delay']);
$rrd['delay'] = $rrd['delay'] / 1000; // Convert to seconds
$rrd['dispersion'] = $atNtpAssociationEntry[$array['UID']]['atNtpAssociationDisp'];
$tags = compact('ntp', 'rrd_name', 'rrd_def', 'peer');
$tags = compact('type', 'rrd_name', 'rrd_def', 'peer');
data_update($device, 'ntp', $tags, $rrd);
// Let's print some debugging info.
@@ -81,4 +81,4 @@ if ($components) {
} // end if count components
// Clean-up after yourself!
unset($type, $components, $component, $options, $tmp_module);
unset($type, $components, $component, $options, $type);