Fix adsl graphs (#11379)

disable name checking
This commit is contained in:
Tony Murray
2020-04-04 07:41:22 -05:00
committed by GitHub
parent f0d68a1ad8
commit 7688426c85
2 changed files with 8 additions and 1 deletions

View File

@@ -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;
}
/**

View File

@@ -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)