Page 1 of 1

check_email_delivery

Posted: Thu Nov 01, 2018 12:32 pm
by hbouma
I have 2 checks setup for check_email_delivery. Each going through a different relay. Since I set them up, the most recent received time has been growing. Each check has a unique IP and body, but use the same email.

Am I using the check incorrectly?

Each check runs every 2 minutes

Config 1:

Code: Select all

--mailto TESTEMAIL --mailfrom TESTEMAIL -H XXX.XX.XX.XX1 --smtp-server XXX.XX.XX.XX1 --smtp-username 'TESTUSER' --smtp-password 'PASSWORD' --smtp-port 25 --imap-server XXX.XX.XX.XX1 --username 'TESTUSER' --password 'PASSWORD' --imap-port 143 --body "HOSTNAME1 test"!!!!!!!
Config 2:

Code: Select all

--mailto TESTEMAIL --mailfrom TESTEMAIL -H XXX.XX.XX.XX2 --smtp-server XXX.XX.XX.XX2 --smtp-username 'TESTUSER' --smtp-password 'PASSWORD' --smtp-port 25 --imap-server XXX.XX.XX.XX2 --username 'TESTUSER' --password 'PASSWORD' --imap-port 143 --body "HOSTNAME2 test"!!!!!!!
2018-11-01 13_31_14-Dashboards ยท Nagios XI.png

Re: check_email_delivery

Posted: Thu Nov 01, 2018 3:26 pm
by tgriep
The check_email_delivery plugin sends an email to the recipient you specified with a serial number attached to it.
Then it logs in to the email server and verifies that the email was received and if it has been received, it should delete it.
What I think is happening is that there is an old test message still in the inbox of the server that did not get deleted.

Can you login to the IMAP server and verify that there is not an old message in the inbox.
If so, delete it and see if the check returns an OK state.

Re: check_email_delivery

Posted: Fri Nov 02, 2018 12:57 pm
by hbouma
Thank you! That worked

Re: check_email_delivery

Posted: Fri Nov 02, 2018 1:11 pm
by lmiltchev
@hbouma, is it OK to close this topic?

Re: check_email_delivery

Posted: Fri Nov 02, 2018 1:15 pm
by hbouma
Yes, go ahead and close