Office365 plugin checks by user

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 68
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

Office365 plugin checks by user

Post by [email protected] »

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Office365 plugin checks by user

Post 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
Locked