...
Info |
---|
Code Block |
---|
title | ~/lib/nagios/plugins |
---|
linenumbers | true |
---|
| 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 |
---|
linenumbers | true |
---|
| 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 |
|
Status-File
This plugin needs a file to store information about sent, received and expected mails. Defaults to either /tmp/ or /omd/sites/<sitename>/var/check_mk when executed from within an OMD site.
Code Block |
---|
title | ~/var/check_mk |
---|
linenumbers | true |
---|
|
OMD[nagnis_master]:~/lib/nagios/plugins$ ls -ltr ~/var/check_mk/ |grep 'check_mail'
-rw-rw---- 1 nagnis_master nagnis_master 15 Dec 8 13:12 check_mail_loop.localhost-Email Delivery.status
OMD[nagnis_master]:~/lib/nagios/plugins$ cat ~/var/check_mk/check_mail_loop.localhost-Email\ Delivery.status
1607429555 304
|
For debugging reasons it may be useful to change the path and suffix of the State-File. You can do this with '--status-dir PATH' and '--status-suffix SUFFIX'.
Code Block |
---|
--debug --status-dir /tmp --status-suffix TEST |
With this option you will save the State-File in /tmp with the Suffix 'TEST'
Code Block |
---|
|
OMD[nagnis_master]:~/lib/nagios/plugins$ ./check_mail_loop --pwstore=4@16@strato,10@17@strato '--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 --status-dir /tmp --status-suffix TEST |
Code Block |
---|
|
MD[nagnis_master]:~/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 |
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 |
---|
|
...