Fix invalid json in test data (#9015)

* Fix invalid json in test data
Most simply needed the syntax fixed
fail2ban needed updated data (added non-zero values in test data too)
awplus: ntp application cannot be enabled by tests since it doesn't use snmp extend... ntp app is enabled by ntp module... pass on that for now.

* missed awplus change somehow...
This commit is contained in:
Tony Murray
2018-08-16 11:11:03 -05:00
committed by GitHub
parent 731da950d9
commit 184f5a5f99
12 changed files with 29 additions and 39 deletions

View File

@@ -43,11 +43,9 @@ $rrd_def = RrdDefinition::make()
->addDataset('firewalled', 'GAUGE', 0);
$fields = array(
'banned' => $f2b['total'],
'firewalled'=>'U', // legacy ds
);
$metrics['total'] = $fields;
$fields = ['banned' => $f2b['total']];
$metrics['total'] = $fields; // don't include legacy ds in db
$fields['firewalled'] = 'U'; // legacy ds
$tags = array('name' => $name, 'app_id' => $app_id, 'rrd_def' => $rrd_def, 'rrd_name' => $rrd_name);
data_update($device, 'app', $tags, $fields);