Versions Compared

Key

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

...

  1. WATO - CONFIGURATION → Host & Service Parameters → Active checks → Check Email Delivery
  2. Check Email Delivery
    1. Name: The service description will be Mail Loop plus this name
    2. Subject: Here you can specify the subject text instead of default text 'Check_MK-Mail-Loop'.
    3. SMTP Server: You can specify a hostname or IP address different from the IP address of the host this check will be assigned to.
    4. Use TLS over SMTP: Encrypt SMTP communication using TLS
    5. Use TLS for IMAP authentication: IMAP authentification uses TLS
    6. SMTP TCP Port to connect to: The TCP Port the SMTP server is listening on. Defaulting to 25.
    7. SMTP Authentication:  Your credentials for the SMTP Server

      Info


    8. Mail Receiving
      1. IMAP/POP3: Chose whether you want to use IMAP or POP3
      2. IMAP Server: You can specify a hostname or IP address different from the IP address of the host this check will be assigned to.
      3. SSL Encryption: Encrypt IMAP communication using TLS
      4. Authentication: Your credentials for the IMAP Server
    9. From: email address
    10. Destination: email address

    11. Connect Timeout: Timeout in seconds for network connects (defaults to 10)
    12. Loop duration: Loop duration of the most recent mail in seconds or the average of all received mails within a single check to raise a WARNING/CRITICAL state
    13. 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 not clean it up manually.

      Info


Debugging

Execute active Check manually

or debugging reasons it could be useful 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

...

.

Info

Image AddedImage Added

Code Block
title~/lib/nagios/plugins
linenumberstrue
OMD[nagnis_master]:~/lib/nagios/plugins$ ./check_mail_loop--pwstore=4@16@provider1,10@17@provider2 '--smtp-server=smtp.provider1.de' '--smtp-tls' '--smtp-username=mail@provider1.de' '--smtp-password=*************' '--fetch-protocol=IMAP' '--fetch-server=imap.provider2.de' '--fetch-ssl' '--fetch-port=993' '--fetch-username=mail@provider2.de' '--fetch-password=*************' '--mail-from=mail@provider1.de' '--mail-to=mail@provider2.de' '--delete-messages' '--status-suffix=localhost-Email Delivery' '--warning=120' '--critical=300' '--subject=Check_MK-Mail-Loop for Strato'



Code Block
title~/lib/nagios/plugins
linenumberstrue
OMD[nagnis_master]:~/lib/nagios/plugins$ ./check_mail_loop--pwstore=4@16@provider1,10@17@provider2 '--smtp-server=smtp.provider1.de' '--smtp-tls' '--smtp-username=mail@provider1.de' '--smtp-password=*************' '--fetch-protocol=IMAP' '--fetch-server=imap.provider2.de' '--fetch-ssl' '--fetch-port=993' '--fetch-username=mail@provider2.de' '--fetch-password=*************' '--mail-from=mail@provider1.de' '--mail-to=mail@provider2.de' '--delete-messages' '--status-suffix=localhost-Email Delivery' '--warning=120' '--critical=300' '--subject=Check_MK-Mail-Loop for Strato' --debug



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

...