mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add 'alert history' widget for dashboard (#10901)
* add alert history dashboard * add sql-schema * only alert * add settings * add settings * fix display alert details * fix db-schema * add filtering by severity * fix code climate * Update common.php
This commit is contained in:
@@ -13,6 +13,17 @@
|
||||
* @author LibreNMS Contributors
|
||||
*/
|
||||
|
||||
$alert_severities = array(
|
||||
// alert_rules.status is enum('ok','warning','critical')
|
||||
'ok' => 1,
|
||||
'warning' => 2,
|
||||
'critical' => 3,
|
||||
'ok only' => 4,
|
||||
'warning only' => 5,
|
||||
'critical only' => 6,
|
||||
);
|
||||
|
||||
|
||||
$where = 1;
|
||||
$param = [];
|
||||
|
||||
|
Reference in New Issue
Block a user