mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -94,9 +94,16 @@ class RrdDefinition
|
||||
return $this->skipNameCheck || isset($this->dataSets[$this->escapeName($name)]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable checking if the name is valid for incoming data and just assign values
|
||||
* based on order
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function disableNameChecking()
|
||||
{
|
||||
$this->skipNameCheck = true;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -43,7 +43,7 @@ use LibreNMS\RRD\RrdDefinition;
|
||||
// adslAturPerfInvalidIntervals.1 = 0
|
||||
if (isset($this_port['adslLineCoding'])) {
|
||||
$rrd_name = getPortRrdName($port_id, 'adsl');
|
||||
$rrd_def = RrdDefinition::make()
|
||||
$rrd_def = RrdDefinition::make()->disableNameChecking()
|
||||
->addDataset('AtucCurrSnrMgn', 'GAUGE', 0, 635)
|
||||
->addDataset('AtucCurrAtn', 'GAUGE', 0, 635)
|
||||
->addDataset('AtucCurrOutputPwr', 'GAUGE', 0, 635)
|
||||
|
Reference in New Issue
Block a user