...
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'
|
For a detailed log you can use --debug at the end of the command: 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 |
For more information you can use --help: Code Block |
---|
~/lib/nagios/plugins/check_mail_loop -h |
|
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.
...