check_email_delivery

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

check_email_delivery

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_email_delivery

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: check_email_delivery

Post by hbouma »

Thank you! That worked
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_email_delivery

Post by lmiltchev »

@hbouma, is it OK to close this topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
hbouma
Posts: 483
Joined: Tue Feb 27, 2018 9:31 am

Re: check_email_delivery

Post by hbouma »

Yes, go ahead and close
Locked