...
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Step-by-step guide
- Setup → Services → HTTP, TCP, Email, ... → Check Email Delivery → Add Rule
- Name: The service description will be Mail Loop plus this name
- Subject: Here, you can specify the subject text instead of the default text 'Check_MK-Mail-Loop'.
- SMTP Server: You can specify a hostname or IP address different from the IP address of the host this check will be assigned to.
- Use TLS over SMTP: Encrypt SMTP communication using TLS
- Use TLS for IMAP authentication: IMAP authentification uses TLS
- SMTP TCP Port to connect to: The TCP Port the SMTP server is listening on. Defaulting to 25.
SMTP Authentication: Your credentials for the SMTP Server
- Mail Receiving
- IMAP/POP3: Chose whether you want to use IMAP or POP3
- IMAP Server: You can specify a hostname or IP address different from the IP address of the host this check will be assigned to.
- SSL Encryption: Encrypt IMAP communication using TLS
- Authentication: Your credentials for the IMAP Server
- IMAP/POP3: Chose whether you want to use IMAP or POP3
- From: email address
Destination: email address
- Connect Timeout: Timeout in seconds for network connects (defaults to 10)
- Loop duration: Loop duration of the most recent mail in seconds or the average of all received emails within a single check to raise a WARNING/CRITICAL state
Delete processed messages: Delete all messages identified as being related to this check plugin. This is disabled by default, which might make your mailbox grow when you do not clean it up manually.
Debugging
Execute active Check manually
or debugging reasons, it could be helpful to run the check manually. Therefore, you need to open the service site of the E-Mail service and search for 'Service check command'. Now you can use the command for executing the check manually.
...
Code Block | ||||
---|---|---|---|---|
| ||||
~/lib/nagios/plugins/check_mail_loop -h |
Status-File
This plugin needs a file to store information about sent, received, and expected emails. Defaults to either /tmp/ or /omd/sites/<sitename>/var/check_mk when executed from within an OMD site.
...
Code Block | ||||
---|---|---|---|---|
| ||||
OMD[mysite]:~/lib/nagios/plugins$ ls -ltr /tmp/ |grep 'check_mail' -rw-rw---- 1 nagnis_master nagnis_master 15 Dec 8 13:21 check_mail_loop.TEST.status |
Debugging mail fetching
If you encounter that Checkmk might not fetch emails, you might want to try out if Checkmk is able to connect to the POP/IMAP servers with OpenSSL (in this case Google IMAP):
...
Code Block | ||||
---|---|---|---|---|
| ||||
tag login <username> <password> |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...