(Die Seite wurde neu angelegt: „{{Set_lang}} {{#vardefine:headerIcon|spicon-utm}} {{:UTM/CLI/Alertingcenter.lang}} </div>{{Select_lang}}{{TOC2}} {{Header|06.2023|new=true| ||{{Menu|Extras|CLI}} }} ---- <li class="list--element__alert list--element__hint em2">{{#var:Parameter ohne Wert}}</li> <br clear=all> {| class="sptable pd5 Einrücken" |- ! {{#var:Befehl}} !! {{#var:Parameter}} !! {{#var:Beschreibung}} !! {{#var:Beispiel}} |- | {{h3|alertingcenter}} {{h4|alertingcenter alerts…“) |
KKeine Bearbeitungszusammenfassung |
||
Zeile 3: | Zeile 3: | ||
{{#vardefine:headerIcon|spicon-utm}} | {{#vardefine:headerIcon|spicon-utm}} | ||
{{:UTM/CLI/Alertingcenter.lang}} | {{:UTM/CLI/Alertingcenter.lang}} | ||
{{var | neu--Benachrichtigungsart http_request | |||
| Neue Benachrichtigungsart für [[#alertingcenter severity|severity]] | |||
| }} | |||
{{var | neu--alertingcenter test | |||
| Neuer Befehl: [[#alertingcenter test|alertingcenter test]] | |||
| }} | |||
</div>{{Select_lang}}{{TOC2}} | </div>{{Select_lang}}{{TOC2}} | ||
{{Header|06.2023 | {{Header|12.7.0| | ||
* {{#var:neu--rwi}} | |||
* {{#var:neu--Benachrichtigungsart http_request}} | |||
* {{#var:neu--alertingcenter test}} <small>v12.6</small> | |||
|[[UTM/CLI/Alertingcenter_06.2023 | 06.2023]] | |||
|{{Menu-UTM|Extras|CLI}} | |||
}} | }} | ||
Zeile 15: | Zeile 26: | ||
<br clear=all> | <br clear=all> | ||
{| class=" | {| class="sptable2 pd5 Einrücken sortable" | ||
|- | |- | ||
! {{#var:Befehl}} !! {{#var:Parameter}} !! {{#var: | ! {{#var:Befehl}} !! class="unsortable"| {{#var:Parameter}} !! class="unsortable"| {{#var:desc}} !! class="unsortable"| {{#var:Beispiel}} | ||
|- | |- | ||
| {{h3|alertingcenter}} {{h4|alertingcenter | | {{h3|alertingcenter}} {{h4|alertingcenter collectd}} '''alertingcenter collectd''' get | ||
| – | | – | ||
| {{#var: | | {{#var:Ausgabe aller Schwellenwert-gesteuerter Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var:Wert}} !! {{#var:desc}} | ! {{#var:Wert}} !! {{#var:desc}} | ||
|- | |- | ||
| | | plugin || {{#var:plugin--desc}} | ||
|- | |- | ||
| | | tolerance_time || {{#var:tolerance_time--desc}} | ||
|- | |- | ||
| | | severity_1 || {{#var:severity_1--desc}} | ||
|- | |- | ||
| | | severity_2 || {{#var:severity_2--desc}} | ||
|- | |- | ||
| | | limit_severity_1 || {{#var:limit_severity_1--desc}} | ||
|- | |- | ||
| | | limit_severity_2 || {{#var:limit_severity_2--desc}} | ||
|} | |} | ||
| {{code| alertingcenter | |||
| {{code| alertingcenter collectd get }} | |||
|- | |- | ||
|- | |- | ||
| alertingcenter | | rowspan="7"| alertingcenter collectd set | ||
| | | | ||
| {{#var: | | {{#var:alertingcenter collectd set--desc}} | ||
| rowspan="7"| {{code| alertingcenter collectd set plugin "DF" limit_severity_1 "35" }} | |||
|- | |- | ||
| | | plugin || {{#var:plugin--desc}} | ||
|- | |- | ||
| | | limit_serverity_1 || {{#var:limit_severity_1--desc}} | ||
|- | |- | ||
| | | limit_serverity_2 || {{#var:limit_severity_2--desc}} | ||
|- | |- | ||
| | | tolerance_time || {{#var:tolerance_time--desc}} | ||
|- | |- | ||
| | | serverity_1 || {{#var:severity_1--desc}} | ||
|- | |- | ||
| | | serverity_2 || {{#var:severity_2--desc}} | ||
|- | |- | ||
|- | |- | ||
| | | {{h4|alertingcenter syslog}} '''alertingcenter syslog''' pattern get | ||
|- | | – | ||
| | | {{#var:alertingcenter syslog pattern get--desc}} {{Einblenden|{{#var:Details}}|{{#var:hide}}|true|dezent}} | ||
| | {| class="sptable" | ||
| | ! {{#var:Wert}} !! {{#var:desc}} | ||
|- | |- | ||
| | | pattern_id || {{#var:pattern_id--desc}} | ||
|- | |- | ||
| | | pattern_name || {{#var:pattern_name--desc}} | ||
|- | |- | ||
| | | group_id || {{#var:group_id--desc}} | ||
|- | |- | ||
| | | pattern_message || {{#var:pattern_message--desc}} | ||
|} | |} | ||
| {{code| alertingcenter | | {{code| alertingcenter syslog pattern get }} | ||
|- | |- | ||
|- | |- | ||
| alertingcenter syslog patterngroup get | |||
| – | | – | ||
| {{#var: | | {{#var:alertingcenter syslog pattergroup get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var:Wert}} !! {{#var:desc}} | ! {{#var:Wert}} !! {{#var:desc}} | ||
|- | |- | ||
| | | group_id || {{#var:group_id--desc}} | ||
|- | |- | ||
| | | group_name || {{#var:group_name--desc}} | ||
|- | |- | ||
| | | group_severity || {{#var:group_severity--desc}} | ||
|- | |- | ||
| | | group_message || {{#var:group_message--desc}} | ||
|} | |} | ||
| {{code| alertingcenter | | {{code| alertingcenter syslog patterngroup get }} | ||
|- | |- | ||
|- | |- | ||
| rowspan=" | | rowspan="4"| alertingcenter syslog patterngroup set | ||
| | | | ||
| {{#var:alertingcenter | | {{#var:alertingcenter syslog patterngroup set--desc}} | ||
| rowspan=" | | rowspan="4"| {{code| alertingcenter syslog patterngroup set group_id 26 group_severity "INFO" language de }} | ||
|- | |- | ||
| | | group_id || {{#var:group_id--desc}} | ||
|- | |- | ||
| | | group_severity || {{#var:group_severity--desc}} | ||
|- | |- | ||
| | | language || {{#var:language--desc}} | ||
|- | |- | ||
|- | |- | ||
| alertingcenter syslog expression get | |||
| | | – | ||
| {{#var:alertingcenter | | {{#var:alertingcenter syslog expression get--desc}} {{Einblenden|{{#var:Details}}|{{#var:hide}}|true|dezent}} | ||
| | {| class="sptable" | ||
! {{#var:Wert}} !! {{#var:desc}} | |||
|- | |- | ||
|- | |- | ||
| | | expr_id || {{#var:expr_id--desc}} | ||
|- | |- | ||
| | | pattern_id || {{#var:pattern_id--desc}} | ||
|- | |- | ||
| | | expr_command || {{#var:expr_command--desc}} | ||
|- | |- | ||
| | | expr_program || {{#var:expr_program--desc}} | ||
| | |} | ||
| {{code| alertingcenter syslog expression get }} | |||
| | |||
|- | |- | ||
Zeile 186: | Zeile 171: | ||
|- | |- | ||
| {{h4|alertingcenter | | {{h4|alertingcenter alerts}} '''alertingcenter alerts''' get | ||
| – | | – | ||
| {{#var: | | {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var:Wert}} !! {{#var:desc}} | ! {{#var:Wert}} !! {{#var:desc}} | ||
|- | |- | ||
| alert_id || {{#var:alert_id--desc}} | |||
|- | |||
| severity || {{#var:severity--desc}} | |||
|- | |- | ||
| | | time || {{#var:time--desc}} | ||
|- | |||
| collector || {{#var:collector--desc}} | |||
|- | |||
| program || {{#var:program--desc}} | |||
|- | |- | ||
| | | user_message || {{#var:user_message--desc}} | ||
|- | |- | ||
| | | attribute || {{#var:attribute--desc}} | ||
|- | |- | ||
| | | value || {{#var:value--desc}} | ||
|} | |} | ||
| {{code| alertingcenter | | {{code| alertingcenter alerts get }} | ||
|- | |- | ||
|- | |- | ||
| alertingcenter | | alertingcenter alerts program get | ||
| – | | – | ||
| {{#var: | | {{#var:Auflistung aller Benachrichtigungen--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! | ! programm !! programm_translated | ||
|- | |||
| fetchmail || Mail Connector | |||
|- | |||
| ctasd || Spamfilter | |||
|- | |||
| collectd || Statistics | |||
|- | |||
| openvpn || SSL-VPN | |||
|- | |||
| squid || HTTP Proxy | |||
|- | |||
| spf2bd || IPS Bans | |||
|- | |||
| spauthd || Authentication | |||
|- | |- | ||
| | | pppd || Dial-up | ||
|- | |- | ||
| | | mailscanner || Mailscanner | ||
|- | |- | ||
| | | tomoyo || Mandatory-Access-Control | ||
|- | |- | ||
| | | server || Core Daemon | ||
| | |- | ||
| dyndns_client || Dynamic DNS | |||
| | |- | ||
| spnetd || Network | |||
|- | |||
| dbus || DBUS alert | |||
|- | |- | ||
| ulogd || IDS/IPS | |||
|- | |- | ||
| | | policy_greylist_server || Greylist | ||
| | |||
| | |||
|- | |- | ||
| | | kryptochef || Krypto Daemon | ||
|- | |- | ||
| | | system_cloudbackup_store || Cloud Backup | ||
|- | |- | ||
| | | spupdater || Updater | ||
|- | |- | ||
| | | new_if_names || Interface Changes | ||
|} | |} | ||
| {{code| alertingcenter alerts program get }} | |||
| {{code| alertingcenter | |||
|- | |- | ||
|- | |- | ||
| rowspan=" | | rowspan="8"| {{h4|alertingcenter report}} '''alertingcenter report''' create | ||
| | | | ||
| {{#var:alertingcenter | | {{#var:alertingcenter report create--desc}} | ||
| rowspan=" | | 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--desc}} | |||
|- | |||
| collector || {{#var:collector--desc}} | |||
|- | |||
| severity || {{#var:severity--desc}} | |||
|- | |||
| alert_id || {{#var:alert_id--desc}} | |||
|- | |||
| period || {{#var:period--desc}} | |||
|- | |- | ||
| | | since_id || {{#var:since_id--desc}} | ||
|- | |- | ||
| | | alert_limit || {{#var:alert_limit--desc}} | ||
|- | |- | ||
|- | |- | ||
| {{h4|alertingcenter test}} '''alertingcenter test''' | |||
| – | |||
| {{#var:alertingcenter test--desc}} | |||
| {{code|alertingcenter test}} | |||
|} | |} |
Version vom 5. Juni 2024, 13:38 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:
Befehl | 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 | |||||||||||||||||||||||||||||||||||||||||||||
collector | Schwellenwert-gesteuerte Benachrichtigung | ||||||||||||||||||||||||||||||||||||||||||||
severity | Name der Schwellenwert-gesteuerten Benachrichtigungen | ||||||||||||||||||||||||||||||||||||||||||||
alert_id | ID des Alarms | ||||||||||||||||||||||||||||||||||||||||||||
period | Zeitrahmen der zu sendenden Nachricht | ||||||||||||||||||||||||||||||||||||||||||||
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 |