check_unread_emails.pl

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cnewstrom
Posts: 9
Joined: Wed Dec 10, 2014 11:37 am

check_unread_emails.pl

Post by cnewstrom »

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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check_unread_emails.pl

Post by npolovenko »

Hello, @cnewstrom. I haven't used this plugin personally but my recommendation would be to open an issue on the authors Github page and see if he can help out:
https://github.com/elio78/nagios/issues/new
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked