diff --git a/cloud/microsoft/office365/sharepoint/mode/siteusage.pm b/cloud/microsoft/office365/sharepoint/mode/siteusage.pm index 6d79e5852..ad2ed1489 100644 --- a/cloud/microsoft/office365/sharepoint/mode/siteusage.pm +++ b/cloud/microsoft/office365/sharepoint/mode/siteusage.pm @@ -378,7 +378,8 @@ Can be: 'url', 'id' (can be a regexp). =item B<--warning-*> Threshold warning. -Can be: 'active-sites', 'total-usage' (count), 'total-file-count' (count), +Can be: 'active-sites', 'total-usage-active' (count), +'total-usage-inactive' (count), 'total-file-count' (count), 'total-active-file-count' (count), 'total-visited-page-count' (count), 'total-page-view-count' (count), 'usage' (count), 'file-count' (count), 'active-file-count' (count), 'visited-page-count' (count), 'page-view-count' (count). diff --git a/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm b/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm index 45f44bea1..e248fd0f1 100644 --- a/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm +++ b/cloud/microsoft/office365/sharepoint/mode/usersactivity.pm @@ -235,7 +235,7 @@ sub manage_selection { $self->{active} = { active => 0, total => 0, report_date => '' }; $self->{global} = { storage_used_active => 0, storage_used_inactive => 0, synced_file_count => 0, viewed_edited_file_count => 0, shared_int_file_count => 0, shared_ext_file_count => 0, - visited_file_count => 0 }; + visited_page_count => 0 }; $self->{users} = {}; my $results = $options{custom}->office_get_sharepoint_activity(); diff --git a/cloud/microsoft/office365/teams/mode/deviceusage.pm b/cloud/microsoft/office365/teams/mode/devicesusage.pm similarity index 99% rename from cloud/microsoft/office365/teams/mode/deviceusage.pm rename to cloud/microsoft/office365/teams/mode/devicesusage.pm index fa1c15ef7..95156255a 100644 --- a/cloud/microsoft/office365/teams/mode/deviceusage.pm +++ b/cloud/microsoft/office365/teams/mode/devicesusage.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package cloud::microsoft::office365::teams::mode::deviceusage; +package cloud::microsoft::office365::teams::mode::devicesusage; use base qw(centreon::plugins::templates::counter); diff --git a/cloud/microsoft/office365/teams/plugin.pm b/cloud/microsoft/office365/teams/plugin.pm index 64c42a181..cc0b1c0d9 100644 --- a/cloud/microsoft/office365/teams/plugin.pm +++ b/cloud/microsoft/office365/teams/plugin.pm @@ -31,7 +31,7 @@ sub new { $self->{version} = '0.1'; %{ $self->{modes} } = ( - 'device-usage' => 'cloud::microsoft::office365::teams::mode::deviceusage', + 'devices-usage' => 'cloud::microsoft::office365::teams::mode::devicesusage', 'users-activity' => 'cloud::microsoft::office365::teams::mode::usersactivity', );