Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. WATO - CONFIGURATION → Host & Service Parameters → Active checks → Check Email
  2. CHECK EMAIL

    1. Service description: Here you can type in a service description. Please make sure that this is unique per host and does not collide with other services.

    2. Mail Receiving: Here you can select if you want to check your IMAP or POP3 login. You need your login credentials for your E-Mail Mailbox.

      Info







    3. Forward mails as events to Event Console.

      1. Forwarding Method: Here you can select if you want to send the events either to the EC or to a remote syslog host. If you want to send the events to the local EC, we would recommend using the spooling mechanism.
        By using the spooling mechanism, the check will store all collected events in eventsin one file in ~/var/mkeventd/spool.

        InfoImage Removed


        Code Block
        linenumberstrue
        OMD[nagnis_master]:~$ ll ~/var/mkeventd/spool/
        
        total 3600
        
        -rw-rw---- 1 nagnis_master nagnis_master 79124 Dec 7 15:36 localhost_407343_1607351778
        
        -rw-rw---- 1 nagnis_master nagnis_master 79124 Dec 7 15:37 localhost_408329_1607351841
        
        


      2.  Only process mails with matching subject: Use this option to not process all messages found in the inbox, but only the those whose subject matches the given regular expression. The text entered here is handled as a regular expression pattern. The pattern is matched from the beginning. Add a tailing $ to change it to a whole text match. The match is performed case sensitive. Read more about regular expression matching in Checkmk in our user manual.

      3. Events: Syslog facility: Use this syslog facility for all created events

        Info

        Image Added






Code Block
title~/var/log/mkeventd.log
2020-12-07 12:51:18,078 [20] [cmk.mkeventd.EventServer] Processing message '<21>Dec 7 12:51:17 localhost Checkmk EC: Checkmk EC|Email to EC of Checkmk!'

2020-12-07 12:51:18,079 [20] [cmk.mkeventd.EventServer] Parsed message:

application: Checkmk EC

core_host:

facility: 2

host: localhost

host_in_downtime: False

ipaddress:

pid: 0

priority: 5

text: Checkmk EC|Email to EC of Checkmk!

time: 1607341877.0

...