Versions Compared

Key

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

The basic function of this check is to log in into an IMAP or POP3 mailbox to monitor whether or not the login is possible. An extended feature is, that the check can fetch all (or just some) from the mailbox and forward them as events to the Event Console.

Step-by-step guide

  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.

      Expand
      titleCHECK EMAIL


      Info






    3. aaaa

      Expand
      titleForward mails as events to Event Console


      Info






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


Code Block
firstline~/lib/nagios/plugins/
OMD[nagnis_master]:~/lib/nagios/plugins$ ./check_mail --pwstore=6@11@strato '--protocol=IMAP' '--server=imap.strato.de' '--ssl' '--port=993' '--username=mail@anastasios-thomaidis.de' '--password=*************' '--forward-ec' '--forward-method=spool:' '--match-subject=Checkmk EC' '--forward-facility=2' '--forward-host=localhost' '--cleanup=delete'
OK - Forwarded 0 messages to event console | messages=0


Info

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("email","check_mail_loop","emailloop") and type = "page" and space = "KB"
labelsemail emailloop check_mail_loop

Page Properties
hiddentrue


Related issues