fix severals office 365 modes
This commit is contained in:
parent
0899c1be5a
commit
462b3a8c8f
|
@ -378,7 +378,8 @@ Can be: 'url', 'id' (can be a regexp).
|
||||||
=item B<--warning-*>
|
=item B<--warning-*>
|
||||||
|
|
||||||
Threshold 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-active-file-count' (count), 'total-visited-page-count' (count),
|
||||||
'total-page-view-count' (count), 'usage' (count), 'file-count' (count), 'active-file-count' (count),
|
'total-page-view-count' (count), 'usage' (count), 'file-count' (count), 'active-file-count' (count),
|
||||||
'visited-page-count' (count), 'page-view-count' (count).
|
'visited-page-count' (count), 'page-view-count' (count).
|
||||||
|
|
|
@ -235,7 +235,7 @@ sub manage_selection {
|
||||||
$self->{active} = { active => 0, total => 0, report_date => '' };
|
$self->{active} = { active => 0, total => 0, report_date => '' };
|
||||||
$self->{global} = { storage_used_active => 0, storage_used_inactive => 0, synced_file_count => 0,
|
$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,
|
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} = {};
|
$self->{users} = {};
|
||||||
|
|
||||||
my $results = $options{custom}->office_get_sharepoint_activity();
|
my $results = $options{custom}->office_get_sharepoint_activity();
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# 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);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
|
@ -31,7 +31,7 @@ sub new {
|
||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
%{ $self->{modes} } = (
|
%{ $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',
|
'users-activity' => 'cloud::microsoft::office365::teams::mode::usersactivity',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue