Hi guys!
First, sorry for my low english level, and also for my low nagios skills (im a student doing practices in a company, and i met Nagios 2 weeks ago)
So, recently the company switched from an internal MS Exchange to Office365. We have some servers sending emails when they complete some jobs, like SQL backups, for example. So what i need is some plugin that can connect to office365 owa mailbox and search for mail subjects like "SQL backup success"
I'm trying to do it with check_imap_receive plugin, that it was working on internal server, and because all of people here is using thunderbird as mail client, i think (just think) the answer is near here. My first attemps was like
root@host~ # ./check_imap_receive -H login.microsoftonline.com -U [email protected] -P accountpassword -s "SUBJECT TEXT"
just to check if the plugin can connect to the account and check if any email with that subject exists, but im just getting timeout error. Also, i changed de default port in the script from 143 to 80, 443... and im letting the default ssl port in 993. All i know is that peolple configures thunderbird with login url "login.microsoftonline.com" and SSL port 993
If i can reach all the objetives my boss give to me, maybe i can get a job in this great company, so every kind of help will be truly appreciated
Thank you so much!
Office365 mail subject check
Re: Office365 mail subject check
Hi again
So while post was under moderation, i found the solution in the forum, so i appologize for re-posting the same problem
Solution is to force plugin to use ssl just tipying "--ssl" in the command line so:
And connection is done
Thaks guys
So while post was under moderation, i found the solution in the forum, so i appologize for re-posting the same problem
Solution is to force plugin to use ssl just tipying "--ssl" in the command line so:
Code: Select all
check_imap_receive --hostname outlook.office365.com --user [email protected] --password "password" -s SUBJECT -s "text to search" --sslThaks guys
Re: Office365 mail subject check
Sorry we missed you! Our offices are closed on weekends so we did not see your reply until just now.
Thanks for posting back confirming the fix though - is it alright if we close this up?
Thanks for posting back confirming the fix though - is it alright if we close this up?
Former Nagios employee
Re: Office365 mail subject check
Yea sure problem is fixed
Thank you for your great job this forum is priceless!
Thank you for your great job this forum is priceless!