Office365 mail subject check
Posted: Mon Nov 14, 2016 4:37 am
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!
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!