check_unread_emails.pl
Posted: Wed Mar 13, 2019 12:20 pm
Hello,
I'm trying to use check_unread_emails.pl against an Outlook 365 email box.
First, all due thanks to the author!
After some wrangling I've gotten the script working without any errors from the interpretor - I had to do the following:
1. Figure out the extra perl modules required
2. Made manual changes inside the script for the IMAP target system and certificate file/path
3. I've also verified my host can connect to outlook.office365 on port 993:
[nagiosuser@nagioshost]$ nc -v outlook.office365.com 993
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 40.97.30.162:993.
4. I've also made the (required) credential file
The script is now kicking out an error that seems to imply it's having issues creating the IMAP connection:
[nagiosuser@nagioshost]$ ./check_unread_emails.pl -u [email protected] -w 10 -c 20
UNREAD_EMAILS CRITICAL - Imap connect error : IMAP Failure :error while reading data from server: Transport endpoint is not connected
Has anyone used this to connect to outlook.office365.com successfully?
Thanks!
Craig
I'm trying to use check_unread_emails.pl against an Outlook 365 email box.
First, all due thanks to the author!
After some wrangling I've gotten the script working without any errors from the interpretor - I had to do the following:
1. Figure out the extra perl modules required
2. Made manual changes inside the script for the IMAP target system and certificate file/path
3. I've also verified my host can connect to outlook.office365 on port 993:
[nagiosuser@nagioshost]$ nc -v outlook.office365.com 993
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 40.97.30.162:993.
4. I've also made the (required) credential file
The script is now kicking out an error that seems to imply it's having issues creating the IMAP connection:
[nagiosuser@nagioshost]$ ./check_unread_emails.pl -u [email protected] -w 10 -c 20
UNREAD_EMAILS CRITICAL - Imap connect error : IMAP Failure :error while reading data from server: Transport endpoint is not connected
Has anyone used this to connect to outlook.office365.com successfully?
Thanks!
Craig