feature: Show composer status in web validate. (#8181)

* Show composer status in web validate.
Don't duplicate in validate.php

* Create variable to check if a group has been completed.
No longer skips database checks.
Extract a base class.
Fix locate_binary and find_executable issues (mostly exposed by lack of db)

* Update Validator.php
This commit is contained in:
Tony Murray
2018-02-27 09:57:20 -06:00
committed by Neil Lathwood
parent f57e92102a
commit 3c3fbd3731
20 changed files with 218 additions and 165 deletions

View File

@@ -26,10 +26,9 @@
namespace LibreNMS\Validations;
use LibreNMS\Config;
use LibreNMS\Interfaces\ValidationGroup;
use LibreNMS\Validator;
class Configuration implements ValidationGroup
class Configuration extends BaseValidation
{
/**
* Validate this module.
@@ -44,14 +43,4 @@ class Configuration implements ValidationGroup
$validator->warn('You have the old alerting system enabled - this is to be deprecated on the 1st of June 2015: https://groups.google.com/forum/#!topic/librenms-project/1llxos4m0p4');
}
}
/**
* Returns if this test should be run by default or not.
*
* @return bool
*/
public function isDefault()
{
return true;
}
}