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