mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user