Skip to content

Commit

Permalink
Merge pull request #34 from it-novum/custom_alert
Browse files Browse the repository at this point in the history
Added widget and service check
  • Loading branch information
jensmich authored Nov 21, 2023
2 parents 6dc0da6 + 5f76f35 commit a1120e5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions de/docs/alerting/custom-alert-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ Um Änderungen an den Alarmregeln zu übernehmen, muss eine `Aktualisierung der

![Definition von benutzerdefinierter Alarmregeln](/images/alerting/custom_alerts/custom_alerts_rules.png)

## Einbindung als Dashboardwidget

Um auch in den Dashboards den Überblick zu behalten, existiert mit dem **Custom Alerts Counter** ein konfigurierbares Widget. Dabei kann der Status für die Alerts ausgewählt werden, die gezählt werden sollen. Optional kann noch definiert werden, dass erst nur Alerts älter als x Tage gezählt werden.

![Custom Alert Widget](/images/alerting/custom_alerts/custom_alerts_widget.png)

## Überwachung und Alarmierung von Alerts

Zur Überwachung und Alarmierung von vorhandenen Alerts kann ein parametrisierbares Plugin in openITCOCKPIT genutzt werdem. Mit dem Kommando **check_customalerts_by_stage_and_age** und der Servicevorlage **CHECK_CUSTOMALERTS_BY_STATE_AND_AGE** sind bereits ensprechende Templates vordefiniert, um direkt mit dem Monitoring starten zu können. Das Plugin bietet dabei eine Vielzahl an Konfigurationsoptionen, die man der folgenden Grafik entnehmen kann. Da die Einbindung als Servicecheck erfolgt, kann dieser in Eventkorrelationen, Benachrichtigungen, Reports und allen weiteren Bereichen wie gewohnt genutzt werden.

![Custom Alert Plugin](/images/alerting/custom_alerts/custom_alerts_plugin.png)

## Hintergrundprozess
Die benutzerdefinierten Alarme werden von einem dedizierten Hintergrundprozess verarbeitet. Der Dienst kann über systemd gesteuert werden `systemctl status customalert_worker.service`

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions en/docs/alerting/custom-alert-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ To apply changes to the alert rules, a `Refresh of the monitoring configuration`

![Defining custom alert rules](/images/alerting/custom_alerts/custom_alerts_rules.png)

## Integration as dashboard widget

The **Custom Alerts Counter** is a configurable widget that allows you to maintain an overview in the dashboards. The status of the alerts that are to be counted can be selected. Optionally, you can also define that only alerts older than x days are counted.

![Custom Alert Widget](/images/alerting/custom_alerts/custom_alerts_widget.png)

## Monitoring and notification of alerts

A configurable plugin in openITCOCKPIT can be used to monitor and notify existing alerts. With the command **check_customalerts_by_stage_and_age** and the service template **CHECK_CUSTOMALERTS_BY_STATE_AND_AGE**, templates are already predefined so that monitoring can be started directly. The plugin offers a wide range of configuration options, which can be seen in the following graphic. As this is represented as a service check, it can be used as usual in event correlations, notifications, reports and all other areas.

![Custom Alert Plugin](/images/alerting/custom_alerts/custom_alerts_plugin.png)

## Background daemon
The custom alerts are handled by a dedicated background daemon. The service can be controlled through systemd `systemctl status customalert_worker.service`

Expand Down

0 comments on commit a1120e5

Please sign in to comment.