ich habe soeben ein Wireguard Netz aufgespannt, damit mein Monitoring Master (mit angebundenen Sites) den Mattermost Server auflösen kann.
Anschließend habe ich unter “Notifications” wie in den Docs erklärt Mattermost per Incoming Webhook URL angebunden. Die Webhook URL habe ich per curl von der Shell aus getestet, dass funktioniert soweit - allerdings sendet CheckMK keinerlei Notifications.
Notification Method ist “Slack or Mattermost”,
“Create notification with the following parameters”,
“Webhook URL”,
“https://meine-korrekte-webhool.url/hooks/key”,
“Disable SSL certificate verification” (Sicherheitshalber erstmal, obwohl ein gültiges drin ist),
“Notify all users”,
Conditions → “match sites” und dort alle Sites auf “Selected” gesetzt
Anschließend hab ich Fake Check gemacht mit Critical, aber keinerlei Meldungen kommen an in Mattermost.
Welche Logs sind zuständig dafür bzw. hat spontan jemand eine Idee, ob ich was falsch gemacht habe bzw. vergessen habe?
$OMD_ROOT/var/log/notify.log wäre das Logfile.
Sind die maximum Number of Check Attempts größer als 1? Dann kannst Du mit einem einfachen Fake Check Results keine Notification auslösen.
In den Notification Rules gibt es die Möglichkeit, die letzten 10 Notifications zu analysieren.
Das habe ich noch nicht konfiguriert - ich habe nachgesehen und das steht Standardmäßig auf 0. Verstehe ich richtig, dass dann jeder Zustand nur Soft ist und nicht Hard? Oder ist dadurch jeder Zustand Hard und nie Soft?
Hier wäre jetzt ein Auszug aus dem Log:
2023-08-09 13:31:12,608 [20] [cmk.base.notify] Got raw notification (graylog.domain.tld;Memory) context with 52 variables
2023-08-09 13:31:12,609 [20] [cmk.base.notify] Global rule 'Benachrichtige den Mattermost Kanal'...
2023-08-09 13:31:12,609 [20] [cmk.base.notify] -> matches!
2023-08-09 13:31:12,609 [15] [cmk.base.notify] Global rule 'Notify all contacts of a host/service via HTML email'...
2023-08-09 13:31:12,609 [15] [cmk.base.notify] -> does not match: This rule is disabled
2023-08-09 13:31:12,609 [20] [cmk.base.notify] 1 rules matched, but no notification has been created.
Dann würde ich sagen, dass warscheinlich eher das hier zutrifft?
Verstehe ich richtig, dass dann jeder Zustand nur Soft ist und nicht Hard?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.