Fix for PFSense state table removals field (#13863)

This commit is contained in:
Mark Jeffery 2022-03-31 15:50:14 +02:00 committed by GitHub
parent 427438a08f
commit ac11177beb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,11 +85,11 @@ class Pfsense extends Unix implements OSPolling
$this->enableGraph('pf_inserts');
}
if (is_numeric($oids[0]['pfStateTableCount'] ?? null)) {
if (is_numeric($oids[0]['pfStateTableRemovals'] ?? null)) {
$rrd_def = RrdDefinition::make()->addDataset('removals', 'COUNTER', 0);
$fields = [
'removals' => $oids[0]['pfStateTableCount'],
'removals' => $oids[0]['pfStateTableRemovals'],
];
$tags = compact('rrd_def');