KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 6: | Zeile 6: | ||
{{var | neu--Benachrichtigungsart http_request | {{var | neu--Benachrichtigungsart http_request | ||
| Neue Benachrichtigungsart für [[#alertingcenter severity|severity]] | | Neue Benachrichtigungsart für [[#alertingcenter severity|severity]] | ||
| }} | | New alert type for [[#alertingcenter severity|severity]] }} | ||
{{var | neu--alertingcenter test | {{var | neu--alertingcenter test | ||
| Neuer Befehl: [[#alertingcenter test|alertingcenter test]] | | Neuer Befehl: [[#alertingcenter test|alertingcenter test]] | ||
| | | New command: [[#alertingcenter test|alertingcenter test]] }} | ||
</div>{{Select_lang}}{{TOC2}} | </div>{{Select_lang}}{{TOC2}} | ||
Zeile 19: | Zeile 19: | ||
|{{Menu-UTM|Extras|CLI}} | |{{Menu-UTM|Extras|CLI}} | ||
}} | }} | ||
---- | ---- | ||
<li class="list--element__alert list--element__hint em2">{{#var:Parameter ohne Wert}} {{code|alertingcenter collectd set plugin "DF" limit_severity_1 "35" limit_severity_2 [ ]}}</li> | |||
<br clear=all> | <br clear=all> | ||
{| class="sptable2 pd5 Einrücken sortable" | {| class="sptable2 pd5 Einrücken sortable" | ||
|- | |- | ||
! {{#var:Befehl}} !! class="unsortable"| | ! {{#var:Befehl}} !! class="unsortable" | Parameter !! class="unsortable" | {{#var:desc}} !! class="unsortable" | {{#var:Beispiel}} | ||
|- | |- | ||
| {{h3|alertingcenter}} {{h4|alertingcenter collectd}} '''alertingcenter collectd''' get | | {{h3|alertingcenter}} {{h4|alertingcenter collectd}} '''alertingcenter collectd''' get | ||
Zeile 35: | Zeile 34: | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| plugin || {{#var:plugin--desc}} | | plugin || {{#var:plugin--desc}} | ||
Zeile 52: | Zeile 51: | ||
| {{code| alertingcenter collectd get }} | | {{code| alertingcenter collectd get }} | ||
|- | |- | ||
| rowspan="7" | alertingcenter collectd set | |||
| rowspan="7"| alertingcenter collectd set | |||
| | | | ||
| {{#var:alertingcenter collectd set--desc}} | | {{#var:alertingcenter collectd set--desc}} | ||
| rowspan="7"| {{code| alertingcenter collectd set plugin "DF" limit_severity_1 "35" }} | | rowspan="7" | {{code| alertingcenter collectd set plugin "DF" limit_severity_1 "35" }} | ||
|- | |- | ||
| plugin || {{#var:plugin--desc}} | | plugin || {{#var:plugin--desc}} | ||
Zeile 76: | Zeile 73: | ||
| {{h4|alertingcenter syslog}} '''alertingcenter syslog''' pattern get | | {{h4|alertingcenter syslog}} '''alertingcenter syslog''' pattern get | ||
| – | | – | ||
| {{#var:alertingcenter syslog pattern get--desc}} {{Einblenden|{{#var:Details}}|{{#var:hide}}|true|dezent}} | | {{#var:alertingcenter syslog pattern get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | {| class="sptable2" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| pattern_id || {{#var:pattern_id--desc}} | | pattern_id || {{#var:pattern_id--desc}} | ||
Zeile 96: | Zeile 93: | ||
| {{#var:alertingcenter syslog pattergroup get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | | {{#var:alertingcenter syslog pattergroup get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | {| class="sptable2" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| group_id || {{#var:group_id--desc}} | | group_id || {{#var:group_id--desc}} | ||
Zeile 112: | Zeile 109: | ||
|- | |- | ||
| rowspan="4"| alertingcenter syslog patterngroup set | | rowspan="4" | alertingcenter syslog patterngroup set | ||
| | | | ||
| {{#var:alertingcenter syslog patterngroup set--desc}} | | {{#var:alertingcenter syslog patterngroup set--desc}} | ||
| rowspan="4"| {{code| alertingcenter syslog patterngroup set group_id 26 group_severity "INFO" language de }} | | rowspan="4" | {{code| alertingcenter syslog patterngroup set group_id 26 group_severity "INFO" language de }} | ||
|- | |- | ||
| group_id || {{#var:group_id--desc}} | | group_id || {{#var:group_id--desc}} | ||
Zeile 127: | Zeile 124: | ||
| alertingcenter syslog expression get | | alertingcenter syslog expression get | ||
| – | | – | ||
| {{#var:alertingcenter syslog expression get--desc}} {{Einblenden|{{#var:Details}}|{{#var:hide}}|true|dezent}} | | {{#var:alertingcenter syslog expression get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | |||
! {{#var: | {| class="sptable2" | ||
! {{#var:val}} !! {{#var:desc}} | |||
|- | |- | ||
| expr_id || {{#var:expr_id--desc}} | | expr_id || {{#var:expr_id--desc}} | ||
Zeile 146: | Zeile 143: | ||
| {{h4|alertingcenter severity}} '''alertingcenter severity''' get | | {{h4|alertingcenter severity}} '''alertingcenter severity''' get | ||
| – | | – | ||
| {{#var:alertingcenter severity get--desc}} {{Einblenden|{{#var:Details}}|{{#var:hide}}|true|dezent}} | | {{#var:alertingcenter severity get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | |||
! {{#var: | {| class="sptable2" | ||
! {{#var:val}} !! {{#var:desc}} | |||
|- | |- | ||
| priority || {{#var:priority--desc}} | | priority || {{#var:priority--desc}} | ||
Zeile 156: | Zeile 154: | ||
| emitter || {{#var:emitter--desc}} | | emitter || {{#var:emitter--desc}} | ||
|} | |} | ||
| {{code| alertingcenter severity get }} | | {{code| alertingcenter severity get }} | ||
|- | |- | ||
| rowspan="3" | alertingcenter severity set | |||
| rowspan="3"| alertingcenter severity set | |||
| | | | ||
| {{#var:alertingcenter severity set--desc}} | | {{#var:alertingcenter severity set--desc}} | ||
| rowspan="3"| {{code| alertingcenter severity set severity "DEBUG" emitter "report" }} | | rowspan="3" | {{code| alertingcenter severity set severity "DEBUG" emitter "report" }} | ||
|- | |- | ||
| severity || {{#var:severity--desc}} | | severity || {{#var:severity--desc}} | ||
|- | |- | ||
| emitter || {{#var:emitter--desc}} | | emitter || {{#var:emitter--desc}} | ||
|- | |- | ||
| {{h4|alertingcenter alerts}} '''alertingcenter alerts''' get | | {{h4|alertingcenter alerts}} '''alertingcenter alerts''' get | ||
| – | | – | ||
| {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | | {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | {| class="sptable2" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| alert_id || {{#var:alert_id--desc}} | | alert_id || {{#var:alert_id--desc}} | ||
Zeile 185: | Zeile 180: | ||
| collector || {{#var:collector--desc}} | | collector || {{#var:collector--desc}} | ||
|- | |- | ||
| program || {{#var: | | program || {{#var:Benachrichtigung}} | ||
|- | |- | ||
| user_message || {{#var:user_message--desc}} | | user_message || {{#var:user_message--desc}} | ||
Zeile 200: | Zeile 195: | ||
| – | | – | ||
| {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | | {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class=" | {| class="sptable2" | ||
! programm !! programm_translated | ! programm !! programm_translated | ||
|- | |- | ||
Zeile 243: | Zeile 238: | ||
| new_if_names || Interface Changes | | new_if_names || Interface Changes | ||
|} | |} | ||
| {{code| alertingcenter alerts program get }} | | {{code| alertingcenter alerts program get }} | ||
|- | |- | ||
| rowspan="8" | {{h4|alertingcenter report}} '''alertingcenter report''' create | |||
| rowspan="8"| {{h4|alertingcenter report}} '''alertingcenter report''' create | |||
| | | | ||
| {{#var:alertingcenter report create--desc}} | | {{#var:alertingcenter report create--desc}} | ||
| rowspan="8"| {{code| alertingcenter report create program "fetchmail" collector "MAILQUEUE" severity "WARNING" alert_id "100" period "all" since_id "0800" alert_limit [ ] }} | | rowspan="8" | {{code| alertingcenter report create program "fetchmail" collector "MAILQUEUE" severity "WARNING" alert_id "100" period "all" since_id "0800" alert_limit [ ] }} | ||
|- | |- | ||
| program || {{#var: | | program || {{#var:Benachrichtigung}} | ||
|- | |- | ||
| collector || {{#var:collector--desc}} | | collector || {{#var:collector--desc}} | ||
Zeile 260: | Zeile 254: | ||
| alert_id || {{#var:alert_id--desc}} | | alert_id || {{#var:alert_id--desc}} | ||
|- | |- | ||
| period || {{#var:period--desc}} | | period || {{#var:period--desc}} ''<nowiki>all | today | unit</nowiki>'' | ||
|- | |- | ||
| since_id || {{#var:since_id--desc}} | | since_id || {{#var:since_id--desc}} | ||
Zeile 266: | Zeile 260: | ||
| alert_limit || {{#var:alert_limit--desc}} | | alert_limit || {{#var:alert_limit--desc}} | ||
|- | |- | ||
| {{h4|alertingcenter test}} '''alertingcenter test''' | |||
| – | |||
| {{h4|alertingcenter test}} '''alertingcenter test''' | | {{#var:alertingcenter test--desc}} | ||
| – | |||
| {{#var:alertingcenter test--desc}} | |||
| {{code|alertingcenter test}} | | {{code|alertingcenter test}} | ||
|} | |} |
Aktuelle Version vom 7. Juni 2024, 09:36 Uhr
Syntax des CLI-Befehls alertingcenter
Letzte Anpassung zur Version: 12.7.0
Neu:
- Aktualisierung zum Redesign des Webinterfaces
- Neue Benachrichtigungsart für severity
- Neuer Befehl: alertingcenter test v12.6
notempty
Dieser Artikel bezieht sich auf eine Resellerpreview
Beispiel: alertingcenter collectd set plugin "DF" limit_severity_1 "35" limit_severity_2 [ ]
Befehl | Parameter | Beschreibung | Beispiel | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alertingcenteralertingcenter collectdalertingcenter collectd get |
– | Ausgabe aller Schwellenwert-gesteuerter Benachrichtigungen
|
alertingcenter collectd get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter collectd set | Festlegen der Werte für Schwellenwert gesteuerten Benachrichtigung | alertingcenter collectd set plugin "DF" limit_severity_1 "35" | |||||||||||||||||||||||||||||||||||||||||||
plugin | Name des überwachten Systems | ||||||||||||||||||||||||||||||||||||||||||||
limit_serverity_1 | Erster Schwellenwert | ||||||||||||||||||||||||||||||||||||||||||||
limit_serverity_2 | Zweiter Schwellenwert | ||||||||||||||||||||||||||||||||||||||||||||
tolerance_time | Zeit der tolerierten Überwachung in Minuten | ||||||||||||||||||||||||||||||||||||||||||||
serverity_1 | Erste Benachrichtigungsstufe | ||||||||||||||||||||||||||||||||||||||||||||
serverity_2 | Zweite Benachrichtigungsstufe | ||||||||||||||||||||||||||||||||||||||||||||
alertingcenter syslogalertingcenter syslog pattern get |
– | Auflistung aller Syslog Dienste
|
alertingcenter syslog pattern get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter syslog patterngroup get | – | Auflistung aller Dienstgruppen
|
alertingcenter syslog patterngroup get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter syslog patterngroup set | Erstellung einer neuen Dienstgruppe | alertingcenter syslog patterngroup set group_id 26 group_severity "INFO" language de | |||||||||||||||||||||||||||||||||||||||||||
group_id | ID der Gruppe | ||||||||||||||||||||||||||||||||||||||||||||
group_severity | Zugewiesene Schwellenwert-gesteuerte Benachrichtigung der Gruppe | ||||||||||||||||||||||||||||||||||||||||||||
language | Sprache der Dienstgruppe. Deutsch: de, Englisch: en | ||||||||||||||||||||||||||||||||||||||||||||
alertingcenter syslog expression get | – | Auflistung aller Syslog Ausdrücke
|
alertingcenter syslog expression get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter severityalertingcenter severity get |
– | Auflistung aller Schwellenwert-gesteuerten Benachrichtigungen
|
alertingcenter severity get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter severity set | Erstellt eine neue Schwellenwert-gesteuerte Benachrichtigung | alertingcenter severity set severity "DEBUG" emitter "report" | |||||||||||||||||||||||||||||||||||||||||||
severity | Name der Schwellenwert-gesteuerten Benachrichtigungen | ||||||||||||||||||||||||||||||||||||||||||||
emitter | Zugewiesene Benachrichtigungsart (report, fast_mail oder notempty Neu ab v12.7.0 http_request)
| ||||||||||||||||||||||||||||||||||||||||||||
alertingcenter alertsalertingcenter alerts get |
– | Auflistung aller Benachrichtigungen
|
alertingcenter alerts get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter alerts program get | – | Auflistung aller Benachrichtigungen
|
alertingcenter alerts program get | ||||||||||||||||||||||||||||||||||||||||||
alertingcenter reportalertingcenter report create |
Erstellt eine neue regelmäßige Benachrichtigung | alertingcenter report create program "fetchmail" collector "MAILQUEUE" severity "WARNING" alert_id "100" period "all" since_id "0800" alert_limit [ ] | |||||||||||||||||||||||||||||||||||||||||||
program | Benachrichtigung | ||||||||||||||||||||||||||||||||||||||||||||
collector | Schwellenwert-gesteuerte Benachrichtigung | ||||||||||||||||||||||||||||||||||||||||||||
severity | Name der Schwellenwert-gesteuerten Benachrichtigungen | ||||||||||||||||||||||||||||||||||||||||||||
alert_id | ID des Alarms | ||||||||||||||||||||||||||||||||||||||||||||
period | Zeitrahmen der zu sendenden Nachricht all | today | unit | ||||||||||||||||||||||||||||||||||||||||||||
since_id | Uhrzeit der Zustellung der Nachricht | ||||||||||||||||||||||||||||||||||||||||||||
alert_limit | Maximale Anzahl der Alarmnachrichten | ||||||||||||||||||||||||||||||||||||||||||||
alertingcenter testalertingcenter test |
– | Erwirkt einen Test Alert, der anschließend auslesbar sein sollte (alertingcenter alerts get) | alertingcenter test |