O365 Email Message Count

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

O365 Email Message Count

Post by cnewstrom »

I need to be able to trigger an alert if an O365 email account has greater than X number of unread emails in it.

Does anyone know if this can be done with Nagios XI?

Thanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: O365 Email Message Count

Post by npolovenko »

@cnewstrom, Looks like this plugin can do what you're looking for.
https://exchange.nagios.org/directory/P ... ls/details

Feel free to check out our mail section of the Nagios Exchange, you'll likely find more plugins for Office 365:
https://exchange.nagios.org/directory/P ... -Groupware
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cnewstrom
Posts: 9
Joined: Wed Dec 10, 2014 11:37 am

Re: O365 Email Message Count

Post by cnewstrom »

I've checked out the check_unread_mails.pl script already.

Has anyone gotten this to work agains an O365 account?
I couldn't seem to get it going against O365 for some reason.
cnewstrom
Posts: 9
Joined: Wed Dec 10, 2014 11:37 am

Re: O365 Email Message Count

Post by cnewstrom »

I'm pretty sure the issue was certificate related, but I also think the script might need some updating.

If anyone is successfully using this script I'd appreciate any tips they might lend.

Thanks!
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: O365 Email Message Count

Post by npolovenko »

@cnewstrom, I'm not using O365 in the lab so can't test this. Looks like the author of this plugin left the link to his LinkedIn on the plugin page :) :
https://exchange.nagios.org/directory/P ... ls/details

You could try reaching out to him directly or even better, open a new issue on the GitHub page:
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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: O365 Email Message Count

Post by cdienger »

I've attached a modified script that points to the correct modules. I also needed to install the CBC.pm module:

yum -y install perl-Crypt-CBC
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
cnewstrom
Posts: 9
Joined: Wed Dec 10, 2014 11:37 am

Re: O365 Email Message Count

Post by cnewstrom »

Thanks for the help with the module.

Were you actually able to get this to run?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: O365 Email Message Count

Post by cdienger »

I'm not able to fully test since I don't have a 0365, but did correct some problems that would arise due to the script pointing at old modules.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked