Page 2 of 4

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 19, 2019 3:28 pm
by npolovenko
@rferebee, You mean 1-hour check interval that you set up for the service?
Could you send in your Nagios XI System Profile so I can review it?
To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and PM it to me.
And let me know the name of the new service so I can look it up in your profile.

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 19, 2019 3:34 pm
by rferebee
I assumed this part of the command --imap-check-interval 3600 meant that it would try to send a test message every hour. Is that wrong?

The name of the service is 'On-Prem Email Delivery'. I just PM'd you my profile.

Thank you!

Re: Email Delivery Wizard - SMTP Uknown

Posted: Mon Apr 22, 2019 1:22 pm
by npolovenko
@rferebee, I believe the imap-check-interval setting specifies how long the plugin should wait before checking the server for the test email.
--imap-check-interval <seconds>
How long to wait between polls of the imap-server for the specified mail. Default is 5 seconds.
You should change the check interval to 60 minutes. That way there will be only 1 test message every hour.

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 1:29 pm
by rferebee
Well, 3600 seconds is the same as 60 minutes.

Unfortunately, it's still sending multiple emails every hour despite the interval being specified.

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 2:23 pm
by scottwilkerson
Actually, the frequency t will send a message is every time you run the check.

You need to change the frequency that the check is run for the service in XI to be 60 minutes, this has nothing to do with the --imap-check-interval setting on the plugin. That is how frequently it will check for the messages that were sent

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 2:58 pm
by rferebee
Are you referring to this setting?

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 3:15 pm
by scottwilkerson
Yes, change that to 60 if you want it to run once per hour

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 3:54 pm
by rferebee
Is there a way to code the check to run at the top of every hour?

My Exchange team would like to setup a separate script that verifies the mailbox received the test email within 5 minutes of the top of every hour.

Re: Email Delivery Wizard - SMTP Uknown

Posted: Fri Apr 26, 2019 4:27 pm
by scottwilkerson
There really isn't any way to force the exact time of the run

Re: Email Delivery Wizard - SMTP Uknown

Posted: Thu May 09, 2019 4:00 pm
by rferebee
Ok, I think we're real close, but something still isn't right...

I found this forum post: https://support.nagios.com/forum/viewto ... 7&start=10

So, I attempted to model my check after what is described and the output is giving me the following:
EMAIL DELIVERY CRITICAL - plugin 1 failed: SMTP SEND CRITICAL - Could not send to [email protected]
Here's the full command:

/usr/local/nagios/libexec/check_email_delivery --plugin "/usr/local/nagios/libexec/check_smtp_send -H smtpserver --mailto [email protected] --mailfrom [email protected] --header 'Subject: Nagios XI Test.'"

Could I be missing some yum modules as the thread linked above suggests?