mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: Added the option to select alert rules from a collection
This commit is contained in:
@ -1364,3 +1364,9 @@ function file_download($filename, $content)
|
||||
header('Pragma: public');
|
||||
echo $content;
|
||||
}
|
||||
|
||||
function get_rules_from_json()
|
||||
{
|
||||
global $config;
|
||||
return json_decode(file_get_contents($config['install_dir'] . '/misc/alert_rules.json'), true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user