This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
npolovenko
Support Tech
Posts: 3457 Joined: Mon May 15, 2017 5:00 pm
Post
by npolovenko » Fri Apr 19, 2019 3:28 pm
@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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
rferebee
Posts: 733 Joined: Wed Jul 11, 2018 11:37 am
Post
by rferebee » Fri Apr 19, 2019 3:34 pm
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!
npolovenko
Support Tech
Posts: 3457 Joined: Mon May 15, 2017 5:00 pm
Post
by npolovenko » Mon Apr 22, 2019 1:22 pm
@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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
rferebee
Posts: 733 Joined: Wed Jul 11, 2018 11:37 am
Post
by rferebee » Fri Apr 26, 2019 1:29 pm
Well, 3600 seconds is the same as 60 minutes.
Unfortunately, it's still sending multiple emails every hour despite the interval being specified.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Apr 26, 2019 2:23 pm
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
rferebee
Posts: 733 Joined: Wed Jul 11, 2018 11:37 am
Post
by rferebee » Fri Apr 26, 2019 2:58 pm
Are you referring to this setting?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Apr 26, 2019 3:15 pm
Yes, change that to 60 if you want it to run once per hour
rferebee
Posts: 733 Joined: Wed Jul 11, 2018 11:37 am
Post
by rferebee » Fri Apr 26, 2019 3:54 pm
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.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Fri Apr 26, 2019 4:27 pm
There really isn't any way to force the exact time of the run
rferebee
Posts: 733 Joined: Wed Jul 11, 2018 11:37 am
Post
by rferebee » Thu May 09, 2019 4:00 pm
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?