Page 1 of 1

Office365 plugin checks by user

Posted: Mon Sep 13, 2021 4:07 am
Hi all,

I have a question about using the Office365 plugin. We were using the Configuration Wizard to add these checks, which succeeded.
The general modes like 'mailboxusage' and 'o365serviceusage' are working fine but when I want to add a check for a specific user I am getting a warning there is no data.
The account which I am testing with is from the administrator and he is getting mail for sure!

Code: Select all

[root@nagios ~]# /usr/local/nagios/libexec/check_microsoft_365.php --tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --appid 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --secret 'xxxxxxxxxxxxxxx' --mode 'mailactivitybyuser' --warning '10' --critical '20' --filter '[email protected]'
buffer too small to read octet string (17 < 17)
WARNING: No data for this User!
I have tried also the mode 'mailusagebyuser' with the same output (No data for this User!). This is also the case when using another user.
We are running XI 5.8.3 on CentOS 7.9 at the moment.

Does anyone uses these checks with the mode *byuser? If it works we want to check functional mailboxes on their activity and usage.

Re: Office365 plugin checks by user

Posted: Mon Sep 13, 2021 4:55 pm
by ssax
Please PM me the full output of this command (added -vvv onto it):

Code: Select all

/usr/local/nagios/libexec/check_microsoft_365.php --tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --appid 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --secret 'xxxxxxxxxxxxxxx' --mode 'mailactivitybyuser' --warning '10' --critical '20' --filter '[email protected]' -vvv