Page 2 of 2

Re: M365 monitoring

Posted: Thu Apr 22, 2021 7:08 am
by hbouma
Here are 2 checks run within one after another.

Product Usage:

Code: Select all

/usr/local/nagios/libexec/check_microsoft_365.php --tenant 'SUPER_SECRET_TENANT_ID' --appid 'SECRET_APP_ID' --secret 'SECRET_VALUD' --mode 'o365productusage' --warning ':2180' --critical ':2189' --filter ''
OK: Office_365=1794 Exchange=19 OneDrive=1 SharePoint=80 Skype_For_Business=0 Yammer=0 Teams=1794 | Office_365=1794 Exchange=19 OneDrive=1 SharePoint=80 Skype_For_Business=0 Yammer=0 Teams=1794;:2180;:2189;;
Service Usage:

Code: Select all

/usr/local/nagios/libexec/check_microsoft_365.php --tenant 'SUPER_SECRET_TENANT_ID' --appid 'SECRET_APP_ID' --secret 'SECRET_VALUD' --mode 'o365serviceusage' --warning :2180'' --critical ':2189'  --filter ''
OK: Exchange_Active=56 Exchange_Inactive=2107 OneDrive_Active=8 OneDrive_Inactive=1779 SharePoint_Active=240 SharePoint_Inactive=1547 Skype_For_Business_Active=0 Skype_For_Business_Inactive=1789 Yammer_Active=0 Yammer_Inactive=15 Teams_Active=1957 Teams_Inactive=191 Office_365_Active=1961 Office_365_Inactive=202 | Exchange_Active=56 Exchange_Inactive=2107 OneDrive_Active=8 OneDrive_Inactive=1779 SharePoint_Active=240 SharePoint_Inactive=1547 Skype_For_Business_Active=0 Skype_For_Business_Inactive=1789 Yammer_Active=0 Yammer_Inactive=15 Teams_Active=1957 Teams_Inactive=191 Office_365_Active=1961 Office_365_Inactive=202;:2180;:2189;;

Re: M365 monitoring

Posted: Thu Apr 22, 2021 5:53 pm
by ssax
I don't think it will currently do this, I don't see it doing any checking against what the total is and when you pass the the thresholds it's only going against the teams one. I'll need to submit a feature request for this.

Re: M365 monitoring

Posted: Fri Apr 23, 2021 6:41 am
by hbouma
Yes, if you would put in a feature request, we would appreciate it.

Thanks

Re: M365 monitoring

Posted: Fri Apr 23, 2021 4:55 pm
by ssax
I have submitted the request:

Code: Select all

FR: XI - Microsoft/Office 365 Wizard - Add a license check that allows you to check the specific license count per product allowing you to show active/inactive and the active+inactive count out of total product license count with the ability to limit the check to a specific product
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Let us know when we're okay to lock this up.