...
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. A 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
- WATO - CONFIGURATION → Host & Service Parameters → Active checks → Check Email
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 |
---|
|
Related articles
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | KB |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("email","check_mail_loop","emailloop") and type = "page" and space = "KB" |
---|
labels | email emailloop check_mail_loop |
---|
|
...