mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feat(apps/mysql): add error-state to non-responsive mysql-servers (#13993)
* feat(apps/mysql): add error-state to non-responsive mysql-servers * feat(alerting): add alert-rule for offline mysql-servers * fixup! feat(alerting): add alert-rule for offline mysql-servers * chore(style): replaced ticks * fixup! chore(style): replaced ticks * feat: added migration to make app_status field bigger * feat: moved error-detection to the application_update function * fixup! feat: moved error-detection to the application_update function * chore: updated schema * chore: fix styling * Cleaner way to handle the error states * regex should not include OK Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -527,5 +527,10 @@
|
||||
"rule": "applications.app_type = \"suricata\" && application_metrics.metric = \".total_error_delta\" && application_metrics.value >= \"2\"",
|
||||
"name": "Suricata Packet Error >= 2%",
|
||||
"severity": "critical"
|
||||
},
|
||||
{
|
||||
"rule": "applications.app_type = \"mysql\" && applications.app_state != \"OK\"",
|
||||
"name": "MySQL Server not responding",
|
||||
"severity":"critical"
|
||||
}
|
||||
]
|
||||
|
@@ -168,7 +168,7 @@ applications:
|
||||
- { Field: app_state, Type: varchar(32), 'Null': false, Extra: '', Default: UNKNOWN }
|
||||
- { Field: discovered, Type: tinyint, 'Null': false, Extra: '', Default: '0' }
|
||||
- { Field: app_state_prev, Type: varchar(32), 'Null': true, Extra: '' }
|
||||
- { Field: app_status, Type: varchar(8), 'Null': false, Extra: '' }
|
||||
- { Field: app_status, Type: varchar(1024), 'Null': false, Extra: '' }
|
||||
- { Field: timestamp, Type: timestamp, 'Null': false, Extra: 'on update CURRENT_TIMESTAMP', Default: CURRENT_TIMESTAMP }
|
||||
- { Field: app_instance, Type: varchar(255), 'Null': false, Extra: '' }
|
||||
Indexes:
|
||||
|
Reference in New Issue
Block a user