Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

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.

       CHECK EMAIL

    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

         Forward mails as events to Event Console



~/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

~/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


Filter by label

There are no items with the selected labels at this time.



  • No labels