mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Module tests update: per module output, only store modules data that are run (#8355)
* Test data: don't save data for modules that were not run * Sometimes mibs are prefixed with + * Save output for each module and only output the errored module. Also makes it easier to identify modules that were ran. * Clean up json files. Message when no module data exists. * verbose output when phpunit --debug is used order by for ports avoid graphite output in tests only load module_tables.yaml once * use explode and strpos instead of regex since it is failing... * Fix some warnings * Fix whitespace
This commit is contained in:
committed by
Neil Lathwood
parent
66a3f82269
commit
2bcc76625c
@@ -15,7 +15,7 @@
|
||||
function graphite_update($device, $measurement, $tags, $fields)
|
||||
{
|
||||
global $graphite, $config;
|
||||
if ($graphite !== false) {
|
||||
if ($graphite != false) {
|
||||
$timestamp = time();
|
||||
$graphite_prefix = $config['graphite']['prefix'];
|
||||
// metrics will be built as prefix.hostname.measurement.field value timestamp
|
||||
|
Reference in New Issue
Block a user