mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 08:34:46 +02:00
Enhance exchange (#2488)
This commit is contained in:
parent
8e71cd9015
commit
2a9b47ab33
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::activesyncmailbox;
|
package apps::microsoft::exchange::local::mode::activesyncmailbox;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::activesyncmailbox;
|
use centreon::common::powershell::exchange::activesyncmailbox;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -82,7 +82,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::activesyncmailbox::get_powershell(
|
my $ps = centreon::common::powershell::exchange::activesyncmailbox::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -117,7 +117,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::activesyncmailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
centreon::common::powershell::exchange::activesyncmailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,7 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::databases;
|
package apps::microsoft::exchange::local::mode::databases;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
||||||
@ -26,8 +26,8 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng);
|
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng);
|
||||||
use centreon::common::powershell::exchange::2010::databases;
|
use centreon::common::powershell::exchange::databases;
|
||||||
use apps::microsoft::exchange::2010::local::mode::resources::types qw($copystatus_contentindexstate);
|
use apps::microsoft::exchange::local::mode::resources::types qw($copystatus_contentindexstate);
|
||||||
use JSON::XS;
|
use JSON::XS;
|
||||||
|
|
||||||
sub custom_mailflow_latency_perfdata {
|
sub custom_mailflow_latency_perfdata {
|
||||||
@ -269,6 +269,7 @@ sub new {
|
|||||||
'command-options:s' => { name => 'command_options', default => '-InputFormat none -NoLogo -EncodedCommand' },
|
'command-options:s' => { name => 'command_options', default => '-InputFormat none -NoLogo -EncodedCommand' },
|
||||||
'ps-exec-only' => { name => 'ps_exec_only' },
|
'ps-exec-only' => { name => 'ps_exec_only' },
|
||||||
'ps-display' => { name => 'ps_display' },
|
'ps-display' => { name => 'ps_display' },
|
||||||
|
'ps-server-filter:s' => { name => 'ps_server_filter' },
|
||||||
'ps-database-filter:s' => { name => 'ps_database_filter' },
|
'ps-database-filter:s' => { name => 'ps_database_filter' },
|
||||||
'ps-database-test-filter:s' => { name => 'ps_database_test_filter' }
|
'ps-database-test-filter:s' => { name => 'ps_database_test_filter' }
|
||||||
});
|
});
|
||||||
@ -280,13 +281,14 @@ sub manage_selection {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::databases::get_powershell(
|
my $ps = centreon::common::powershell::exchange::databases::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
no_mailflow => $self->{option_results}->{no_mailflow},
|
no_mailflow => $self->{option_results}->{no_mailflow},
|
||||||
no_mapi => $self->{option_results}->{no_mapi},
|
no_mapi => $self->{option_results}->{no_mapi},
|
||||||
no_copystatus => $self->{option_results}->{no_copystatus},
|
no_copystatus => $self->{option_results}->{no_copystatus},
|
||||||
|
filter_server => $self->{option_results}->{ps_server_filter},
|
||||||
filter_database => $self->{option_results}->{ps_database_filter},
|
filter_database => $self->{option_results}->{ps_database_filter},
|
||||||
filter_database_test => $self->{option_results}->{ps_database_test_filter}
|
filter_database_test => $self->{option_results}->{ps_database_test_filter}
|
||||||
);
|
);
|
||||||
@ -411,6 +413,10 @@ Print powershell output.
|
|||||||
|
|
||||||
Display powershell script.
|
Display powershell script.
|
||||||
|
|
||||||
|
=item B<--ps-server-filter>
|
||||||
|
|
||||||
|
Filter mailboxes by database server name (regexp can be used. In Powershell).
|
||||||
|
|
||||||
=item B<--ps-database-filter>
|
=item B<--ps-database-filter>
|
||||||
|
|
||||||
Filter database (only wilcard '*' can be used. In Powershell).
|
Filter database (only wilcard '*' can be used. In Powershell).
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::imapmailbox;
|
package apps::microsoft::exchange::local::mode::imapmailbox;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::imapmailbox;
|
use centreon::common::powershell::exchange::imapmailbox;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -81,7 +81,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::imapmailbox::get_powershell(
|
my $ps = centreon::common::powershell::exchange::imapmailbox::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -115,7 +115,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::imapmailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
centreon::common::powershell::exchange::imapmailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::listdatabases;
|
package apps::microsoft::exchange::local::mode::listdatabases;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::listdatabases;
|
use centreon::common::powershell::exchange::listdatabases;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -57,7 +57,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::listdatabases::get_powershell(
|
my $ps = centreon::common::powershell::exchange::listdatabases::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -92,7 +92,7 @@ sub run {
|
|||||||
severity => 'OK',
|
severity => 'OK',
|
||||||
short_msg => 'List databases:'
|
short_msg => 'List databases:'
|
||||||
);
|
);
|
||||||
centreon::common::powershell::exchange::2010::listdatabases::list($self, stdout => $stdout);
|
centreon::common::powershell::exchange::listdatabases::list($self, stdout => $stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
@ -109,7 +109,7 @@ sub disco_show {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::listdatabases::get_powershell(
|
my $ps = centreon::common::powershell::exchange::listdatabases::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -124,7 +124,7 @@ sub disco_show {
|
|||||||
command_path => $self->{option_results}->{command_path},
|
command_path => $self->{option_results}->{command_path},
|
||||||
command_options => $self->{option_results}->{command_options}
|
command_options => $self->{option_results}->{command_options}
|
||||||
);
|
);
|
||||||
centreon::common::powershell::exchange::2010::listdatabases::disco_show($self, stdout => $stdout);
|
centreon::common::powershell::exchange::listdatabases::disco_show($self, stdout => $stdout);
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
280
centreon-plugins/apps/microsoft/exchange/local/mode/mailboxes.pm
Normal file
280
centreon-plugins/apps/microsoft/exchange/local/mode/mailboxes.pm
Normal file
@ -0,0 +1,280 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2020 Centreon (http://www.centreon.com/)
|
||||||
|
#
|
||||||
|
# Centreon is a full-fledged industry-strength solution that meets
|
||||||
|
# the needs in IT infrastructure and application monitoring for
|
||||||
|
# service performance.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
package apps::microsoft::exchange::local::mode::mailboxes;
|
||||||
|
|
||||||
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use centreon::plugins::misc;
|
||||||
|
use centreon::common::powershell::exchange::mailboxes;
|
||||||
|
use JSON::XS;
|
||||||
|
|
||||||
|
sub prefix_users_output {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return 'Users mailbox ';
|
||||||
|
}
|
||||||
|
|
||||||
|
sub prefix_folders_output {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return 'Public folders mailbox ';
|
||||||
|
}
|
||||||
|
|
||||||
|
sub prefix_database_output {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return "Database '" . $options{instance_value}->{name} . "' ";
|
||||||
|
}
|
||||||
|
|
||||||
|
sub set_counters {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
$self->{maps_counters_type} = [
|
||||||
|
{ name => 'users', type => 0, cb_prefix_output => 'prefix_users_output', skipped_code => { -10 => 1 } },
|
||||||
|
{ name => 'publicfolders', type => 0, cb_prefix_output => 'prefix_folders_output', skipped_code => { -10 => 1 } },
|
||||||
|
{ name => 'databases', type => 1, cb_prefix_output => 'prefix_database_output', message_multiple => 'All databases are ok' }
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach (('users', 'publicfolders')) {
|
||||||
|
$self->{maps_counters}->{$_} = [
|
||||||
|
{ label => $_ . '-soft-limit', nlabel => 'mailboxes.' . $_ . '.soft.limit.count', set => {
|
||||||
|
key_values => [ { name => 'soft_limit' } ],
|
||||||
|
output_template => 'over soft limit: %s',
|
||||||
|
perfdatas => [
|
||||||
|
{ template => '%d', min => 0 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ label => $_ . '-hard-limit', nlabel => 'mailboxes.' . $_ . '.hard.limit.count', set => {
|
||||||
|
key_values => [ { name => 'hard_limit' } ],
|
||||||
|
output_template => 'over hard limit: %s',
|
||||||
|
perfdatas => [
|
||||||
|
{ template => '%d', min => 0 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ label => $_ . '-quota-unlimited', nlabel => 'mailboxes.' . $_ . '.quota.unlimited.count', set => {
|
||||||
|
key_values => [ { name => 'unlimited' } ],
|
||||||
|
output_template => 'unlimited quota: %s',
|
||||||
|
perfdatas => [
|
||||||
|
{ template => '%d', min => 0 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ label => $_ . '-total', nlabel => 'mailboxes.' . $_ . '.total.count', set => {
|
||||||
|
key_values => [ { name => 'total' } ],
|
||||||
|
output_template => 'total: %s',
|
||||||
|
perfdatas => [
|
||||||
|
{ template => '%d', min => 0 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
$self->{maps_counters}->{databases} = [
|
||||||
|
{ label => 'database-mailboxes-total', nlabel => 'database.mailboxes.total.count', set => {
|
||||||
|
key_values => [ { name => 'mailboxes' } ],
|
||||||
|
output_template => 'total mailboxes: %s',
|
||||||
|
perfdatas => [
|
||||||
|
{ template => '%d', min => 0, label_extra_instance => 1 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
sub new {
|
||||||
|
my ($class, %options) = @_;
|
||||||
|
my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
|
||||||
|
bless $self, $class;
|
||||||
|
|
||||||
|
$options{options}->add_options(arguments => {
|
||||||
|
'remote-host:s' => { name => 'remote_host' },
|
||||||
|
'remote-user:s' => { name => 'remote_user' },
|
||||||
|
'remote-password:s' => { name => 'remote_password' },
|
||||||
|
'no-ps' => { name => 'no_ps' },
|
||||||
|
'timeout:s' => { name => 'timeout', default => 50 },
|
||||||
|
'command:s' => { name => 'command', default => 'powershell.exe' },
|
||||||
|
'command-path:s' => { name => 'command_path' },
|
||||||
|
'command-options:s' => { name => 'command_options', default => '-InputFormat none -NoLogo -EncodedCommand' },
|
||||||
|
'ps-exec-only' => { name => 'ps_exec_only' },
|
||||||
|
'ps-display' => { name => 'ps_display' },
|
||||||
|
'ps-server:s' => { name => 'ps_server' },
|
||||||
|
'ps-database:s' => { name => 'ps_database' },
|
||||||
|
'ps-match-database:s' => { name => 'ps_match_database' },
|
||||||
|
'ps-match-server:s' => { name => 'ps_match_server' }
|
||||||
|
});
|
||||||
|
|
||||||
|
return $self;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub manage_selection {
|
||||||
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
|
my $ps = centreon::common::powershell::exchange::mailboxes::get_powershell(
|
||||||
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
|
ps_server => $self->{option_results}->{ps_server},
|
||||||
|
ps_database => $self->{option_results}->{ps_database},
|
||||||
|
ps_match_database => $self->{option_results}->{ps_match_database},
|
||||||
|
ps_match_server => $self->{option_results}->{ps_match_server}
|
||||||
|
);
|
||||||
|
if (defined($self->{option_results}->{ps_display})) {
|
||||||
|
$self->{output}->output_add(
|
||||||
|
severity => 'OK',
|
||||||
|
short_msg => $ps
|
||||||
|
);
|
||||||
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
|
$self->{output}->exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$self->{option_results}->{command_options} .= " " . centreon::plugins::misc::powershell_encoded($ps);
|
||||||
|
}
|
||||||
|
|
||||||
|
my ($stdout) = centreon::plugins::misc::execute(
|
||||||
|
output => $self->{output},
|
||||||
|
options => { timeout => $self->{option_results}->{timeout} },
|
||||||
|
command => $self->{option_results}->{command},
|
||||||
|
command_path => $self->{option_results}->{command_path},
|
||||||
|
command_options => $self->{option_results}->{command_options}
|
||||||
|
);
|
||||||
|
if (defined($self->{option_results}->{ps_exec_only})) {
|
||||||
|
$self->{output}->output_add(
|
||||||
|
severity => 'OK',
|
||||||
|
short_msg => $stdout
|
||||||
|
);
|
||||||
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
|
$self->{output}->exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
my $decoded;
|
||||||
|
eval {
|
||||||
|
$decoded = JSON::XS->new->decode($stdout);
|
||||||
|
};
|
||||||
|
if ($@) {
|
||||||
|
$self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");
|
||||||
|
$self->{output}->option_exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$self->{users} = {
|
||||||
|
total => $decoded->{users}->{total},
|
||||||
|
soft_limit => $decoded->{users}->{warning_quota},
|
||||||
|
hard_limit => $decoded->{users}->{over_quota},
|
||||||
|
unlimited => $decoded->{users}->{unlimited}
|
||||||
|
};
|
||||||
|
$self->{publicfolders} = {
|
||||||
|
total => $decoded->{public_folders}->{total},
|
||||||
|
soft_limit => $decoded->{public_folders}->{warning_quota},
|
||||||
|
hard_limit => $decoded->{public_folders}->{over_quota},
|
||||||
|
unlimited => $decoded->{public_folders}->{unlimited}
|
||||||
|
};
|
||||||
|
|
||||||
|
$self->{databases} = {};
|
||||||
|
foreach my $name (keys %{$decoded->{group_by_databases}}) {
|
||||||
|
$self->{databases}->{$name} = {
|
||||||
|
name => $name,
|
||||||
|
mailboxes => $decoded->{group_by_databases}->{$name}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
__END__
|
||||||
|
|
||||||
|
=head1 MODE
|
||||||
|
|
||||||
|
Check mailboxes (quota and user mailboxes by database).
|
||||||
|
|
||||||
|
=over 8
|
||||||
|
|
||||||
|
=item B<--remote-host>
|
||||||
|
|
||||||
|
Open a session to the remote-host (fully qualified host name). --remote-user and --remote-password are optional
|
||||||
|
|
||||||
|
=item B<--remote-user>
|
||||||
|
|
||||||
|
Open a session to the remote-host with authentication. This also needs --remote-host and --remote-password.
|
||||||
|
|
||||||
|
=item B<--remote-password>
|
||||||
|
|
||||||
|
Open a session to the remote-host with authentication. This also needs --remote-user and --remote-host.
|
||||||
|
|
||||||
|
=item B<--timeout>
|
||||||
|
|
||||||
|
Set timeout time for command execution (Default: 50 sec)
|
||||||
|
|
||||||
|
=item B<--no-ps>
|
||||||
|
|
||||||
|
Don't encode powershell. To be used with --command and 'type' command.
|
||||||
|
|
||||||
|
=item B<--command>
|
||||||
|
|
||||||
|
Command to get information (Default: 'powershell.exe').
|
||||||
|
Can be changed if you have output in a file. To be used with --no-ps option!!!
|
||||||
|
|
||||||
|
=item B<--command-path>
|
||||||
|
|
||||||
|
Command path (Default: none).
|
||||||
|
|
||||||
|
=item B<--command-options>
|
||||||
|
|
||||||
|
Command options (Default: '-InputFormat none -NoLogo -EncodedCommand').
|
||||||
|
|
||||||
|
=item B<--ps-exec-only>
|
||||||
|
|
||||||
|
Print powershell output.
|
||||||
|
|
||||||
|
=item B<--ps-display>
|
||||||
|
|
||||||
|
Display powershell script.
|
||||||
|
|
||||||
|
=item B<--ps-match-server>
|
||||||
|
|
||||||
|
Filter mailboxes by server name (regexp can be used. In Powershell).
|
||||||
|
|
||||||
|
=item B<--ps-match-database>
|
||||||
|
|
||||||
|
Filter mailboxes by database name (regexp can be used. In Powershell).
|
||||||
|
|
||||||
|
=item B<--ps-server>
|
||||||
|
|
||||||
|
Select mailboxes by an uniq server name (In Powershell).
|
||||||
|
|
||||||
|
=item B<--ps-database>
|
||||||
|
|
||||||
|
Select mailboxes by an uniq database name (In Powershell).
|
||||||
|
|
||||||
|
=item B<--warning-*> B<--critical-*>
|
||||||
|
|
||||||
|
Thresholds.
|
||||||
|
Can be: 'users-soft-limit', 'users-hard-limit', 'users-quota-unlimited', 'users-total',
|
||||||
|
'publicfolders-soft-limit', 'publicfolders-hard-limit', 'publicfolders-quota-unlimited', 'publicfolders-total'
|
||||||
|
'database-mailboxes-total'.
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
|
=cut
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::mapimailbox;
|
package apps::microsoft::exchange::local::mode::mapimailbox;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::mapimailbox;
|
use centreon::common::powershell::exchange::mapimailbox;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -76,7 +76,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::mapimailbox::get_powershell(
|
my $ps = centreon::common::powershell::exchange::mapimailbox::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -109,7 +109,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::mapimailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
centreon::common::powershell::exchange::mapimailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::outlookwebservices;
|
package apps::microsoft::exchange::local::mode::outlookwebservices;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::outlookwebservices;
|
use centreon::common::powershell::exchange::outlookwebservices;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -77,7 +77,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::outlookwebservices::get_powershell(
|
my $ps = centreon::common::powershell::exchange::outlookwebservices::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -111,7 +111,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::outlookwebservices::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
centreon::common::powershell::exchange::outlookwebservices::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::owamailbox;
|
package apps::microsoft::exchange::local::mode::owamailbox;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::owamailbox;
|
use centreon::common::powershell::exchange::owamailbox;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -87,7 +87,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::owamailbox::get_powershell(
|
my $ps = centreon::common::powershell::exchange::owamailbox::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password},
|
remote_password => $self->{option_results}->{remote_password},
|
||||||
@ -123,7 +123,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::owamailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
centreon::common::powershell::exchange::owamailbox::check($self, stdout => $stdout, mailbox => $self->{option_results}->{mailbox});
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,7 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::queues;
|
package apps::microsoft::exchange::local::mode::queues;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
||||||
@ -26,8 +26,8 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng);
|
use centreon::plugins::templates::catalog_functions qw(catalog_status_threshold_ng);
|
||||||
use centreon::common::powershell::exchange::2010::queues;
|
use centreon::common::powershell::exchange::queues;
|
||||||
use apps::microsoft::exchange::2010::local::mode::resources::types qw($queue_status $queue_delivery_type);
|
use apps::microsoft::exchange::local::mode::resources::types qw($queue_status $queue_delivery_type);
|
||||||
use JSON::XS;
|
use JSON::XS;
|
||||||
|
|
||||||
sub custom_status_output {
|
sub custom_status_output {
|
||||||
@ -98,7 +98,7 @@ sub manage_selection {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::queues::get_powershell(
|
my $ps = centreon::common::powershell::exchange::queues::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password}
|
remote_password => $self->{option_results}->{remote_password}
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::replicationhealth;
|
package apps::microsoft::exchange::local::mode::replicationhealth;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::replicationhealth;
|
use centreon::common::powershell::exchange::replicationhealth;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -71,7 +71,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::replicationhealth::get_powershell(
|
my $ps = centreon::common::powershell::exchange::replicationhealth::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password}
|
remote_password => $self->{option_results}->{remote_password}
|
||||||
@ -103,7 +103,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::replicationhealth::check($self, stdout => $stdout);
|
centreon::common::powershell::exchange::replicationhealth::check($self, stdout => $stdout);
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,7 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::resources::types;
|
package apps::microsoft::exchange::local::mode::resources::types;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
@ -18,14 +18,14 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::mode::services;
|
package apps::microsoft::exchange::local::mode::services;
|
||||||
|
|
||||||
use base qw(centreon::plugins::mode);
|
use base qw(centreon::plugins::mode);
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::services;
|
use centreon::common::powershell::exchange::services;
|
||||||
|
|
||||||
sub new {
|
sub new {
|
||||||
my ($class, %options) = @_;
|
my ($class, %options) = @_;
|
||||||
@ -71,7 +71,7 @@ sub run {
|
|||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
if (!defined($self->{option_results}->{no_ps})) {
|
if (!defined($self->{option_results}->{no_ps})) {
|
||||||
my $ps = centreon::common::powershell::exchange::2010::services::get_powershell(
|
my $ps = centreon::common::powershell::exchange::services::get_powershell(
|
||||||
remote_host => $self->{option_results}->{remote_host},
|
remote_host => $self->{option_results}->{remote_host},
|
||||||
remote_user => $self->{option_results}->{remote_user},
|
remote_user => $self->{option_results}->{remote_user},
|
||||||
remote_password => $self->{option_results}->{remote_password}
|
remote_password => $self->{option_results}->{remote_password}
|
||||||
@ -103,7 +103,7 @@ sub run {
|
|||||||
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
$self->{output}->display(nolabel => 1, force_ignore_perfdata => 1, force_long_output => 1);
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
||||||
}
|
}
|
||||||
centreon::common::powershell::exchange::2010::services::check($self, stdout => $stdout);
|
centreon::common::powershell::exchange::services::check($self, stdout => $stdout);
|
||||||
|
|
||||||
$self->{output}->display();
|
$self->{output}->display();
|
||||||
$self->{output}->exit();
|
$self->{output}->exit();
|
@ -18,7 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package apps::microsoft::exchange::2010::local::plugin;
|
package apps::microsoft::exchange::local::plugin;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
@ -31,16 +31,17 @@ sub new {
|
|||||||
|
|
||||||
$self->{version} = '0.1';
|
$self->{version} = '0.1';
|
||||||
$self->{modes} = {
|
$self->{modes} = {
|
||||||
'activesync-mailbox' => 'apps::microsoft::exchange::2010::local::mode::activesyncmailbox',
|
'activesync-mailbox' => 'apps::microsoft::exchange::local::mode::activesyncmailbox',
|
||||||
'databases' => 'apps::microsoft::exchange::2010::local::mode::databases',
|
'databases' => 'apps::microsoft::exchange::local::mode::databases',
|
||||||
'list-databases' => 'apps::microsoft::exchange::2010::local::mode::listdatabases',
|
'list-databases' => 'apps::microsoft::exchange::local::mode::listdatabases',
|
||||||
'imap-mailbox' => 'apps::microsoft::exchange::2010::local::mode::imapmailbox',
|
'imap-mailbox' => 'apps::microsoft::exchange::local::mode::imapmailbox',
|
||||||
'mapi-mailbox' => 'apps::microsoft::exchange::2010::local::mode::mapimailbox',
|
'mailboxes' => 'apps::microsoft::exchange::local::mode::mailboxes',
|
||||||
'outlook-webservices' => 'apps::microsoft::exchange::2010::local::mode::outlookwebservices',
|
'mapi-mailbox' => 'apps::microsoft::exchange::local::mode::mapimailbox',
|
||||||
'owa-mailbox' => 'apps::microsoft::exchange::2010::local::mode::owamailbox',
|
'outlook-webservices' => 'apps::microsoft::exchange::local::mode::outlookwebservices',
|
||||||
'queues' => 'apps::microsoft::exchange::2010::local::mode::queues',
|
'owa-mailbox' => 'apps::microsoft::exchange::local::mode::owamailbox',
|
||||||
'replication-health' => 'apps::microsoft::exchange::2010::local::mode::replicationhealth',
|
'queues' => 'apps::microsoft::exchange::local::mode::queues',
|
||||||
'services' => 'apps::microsoft::exchange::2010::local::mode::services'
|
'replication-health' => 'apps::microsoft::exchange::local::mode::replicationhealth',
|
||||||
|
'services' => 'apps::microsoft::exchange::local::mode::services'
|
||||||
};
|
};
|
||||||
|
|
||||||
return $self;
|
return $self;
|
@ -18,18 +18,18 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::activesyncmailbox;
|
package centreon::common::powershell::exchange::activesyncmailbox;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
my $no_trust_ssl = (defined($options{no_trust_ssl})) ? '' : '-TrustAnySSLCertificate';
|
my $no_trust_ssl = (defined($options{no_trust_ssl})) ? '' : '-TrustAnySSLCertificate';
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -116,6 +116,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 activesync on a specific mailbox.
|
Method to check Exchange activesync on a specific mailbox.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,11 +18,11 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::databases;
|
package centreon::common::powershell::exchange::databases;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
use centreon::common::powershell::functions;
|
use centreon::common::powershell::functions;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
@ -32,7 +32,7 @@ sub get_powershell {
|
|||||||
my $no_mapi = (defined($options{no_mapi})) ? 1 : 0;
|
my $no_mapi = (defined($options{no_mapi})) ? 1 : 0;
|
||||||
my $no_copystatus = (defined($options{no_copystatus})) ? 1 : 0;
|
my $no_copystatus = (defined($options{no_copystatus})) ? 1 : 0;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
$ps .= centreon::common::powershell::functions::escape_jsonstring(%options);
|
$ps .= centreon::common::powershell::functions::escape_jsonstring(%options);
|
||||||
$ps .= centreon::common::powershell::functions::convert_to_json(%options);
|
$ps .= centreon::common::powershell::functions::convert_to_json(%options);
|
||||||
|
|
||||||
@ -61,7 +61,17 @@ try {
|
|||||||
$items = New-Object System.Collections.Generic.List[Hashtable];
|
$items = New-Object System.Collections.Generic.List[Hashtable];
|
||||||
Foreach ($DB in $MountedDB) {
|
Foreach ($DB in $MountedDB) {
|
||||||
$item = @{}
|
$item = @{}
|
||||||
|
';
|
||||||
|
|
||||||
|
if (defined($options{filter_server}) && $options{filter_server} ne '') {
|
||||||
|
$ps .= '
|
||||||
|
if (!($DB.Server.Name -match "' . $options{filter_server} . '")) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
|
$ps .= '
|
||||||
$item.database = $DB.Name
|
$item.database = $DB.Name
|
||||||
$item.server = $DB.Server.Name
|
$item.server = $DB.Server.Name
|
||||||
$item.mounted = $DB.Mounted
|
$item.mounted = $DB.Mounted
|
||||||
@ -71,9 +81,9 @@ Foreach ($DB in $MountedDB) {
|
|||||||
|
|
||||||
if (defined($options{filter_database_test}) && $options{filter_database_test} ne '') {
|
if (defined($options{filter_database_test}) && $options{filter_database_test} ne '') {
|
||||||
$ps .= '
|
$ps .= '
|
||||||
if (!($DB.Name -match "' . $options{filter_database_test} . '")) {
|
if (!($DB.Name -match "' . $options{filter_database_test} . '")) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,6 +137,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 databases.
|
Method to check Exchange databases.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::imapmailbox;
|
package centreon::common::powershell::exchange::imapmailbox;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -96,9 +96,11 @@ sub check {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($self->{data}->{latency} =~ /^(\d+)/) {
|
if ($self->{data}->{latency} =~ /^(\d+)/) {
|
||||||
$self->{output}->perfdata_add(label => $self->{data}->{scenario}, unit => 's',
|
$self->{output}->perfdata_add(
|
||||||
value => sprintf("%.3f", $1 / 1000),
|
label => $self->{data}->{scenario}, unit => 's',
|
||||||
min => 0);
|
value => sprintf("%.3f", $1 / 1000),
|
||||||
|
min => 0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +116,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 imap on a specific mailbox.
|
Method to check Exchange 2010 on a specific mailbox.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::listdatabases;
|
package centreon::common::powershell::exchange::listdatabases;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
# Check to make sure all databases are mounted
|
# Check to make sure all databases are mounted
|
||||||
@ -89,12 +89,16 @@ sub disco_show {
|
|||||||
|
|
||||||
foreach my $line (split /\n/, $options{stdout}) {
|
foreach my $line (split /\n/, $options{stdout}) {
|
||||||
next if ($line !~ /^\[name=(.*?)\]\[server=(.*?)\]\[mounted=(.*?)\]\[size=(.*?)\]\[asize=(.*?)\]/);
|
next if ($line !~ /^\[name=(.*?)\]\[server=(.*?)\]\[mounted=(.*?)\]\[size=(.*?)\]\[asize=(.*?)\]/);
|
||||||
my ($database, $server, $mounted, $size, $asize) = (centreon::plugins::misc::trim($1), centreon::plugins::misc::trim($2),
|
my ($database, $server, $mounted, $size, $asize) = (
|
||||||
centreon::plugins::misc::trim($3), centreon::plugins::misc::trim($4), centreon::plugins::misc::trim($5));
|
centreon::plugins::misc::trim($1), centreon::plugins::misc::trim($2),
|
||||||
|
centreon::plugins::misc::trim($3), centreon::plugins::misc::trim($4), centreon::plugins::misc::trim($5)
|
||||||
|
);
|
||||||
|
|
||||||
$self->{output}->add_disco_entry(name => $database,
|
$self->{output}->add_disco_entry(
|
||||||
server => $server,
|
name => $database,
|
||||||
mounted => $mounted);
|
server => $server,
|
||||||
|
mounted => $mounted
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,6 +108,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to list Exchange 2010 databases.
|
Method to list Exchange databases.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -0,0 +1,169 @@
|
|||||||
|
#
|
||||||
|
# Copyright 2020 Centreon (http://www.centreon.com/)
|
||||||
|
#
|
||||||
|
# Centreon is a full-fledged industry-strength solution that meets
|
||||||
|
# the needs in IT infrastructure and application monitoring for
|
||||||
|
# service performance.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
|
package centreon::common::powershell::exchange::mailboxes;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
use centreon::common::powershell::functions;
|
||||||
|
|
||||||
|
sub get_powershell {
|
||||||
|
my (%options) = @_;
|
||||||
|
|
||||||
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
$ps .= centreon::common::powershell::functions::escape_jsonstring(%options);
|
||||||
|
$ps .= centreon::common::powershell::functions::convert_to_json(%options);
|
||||||
|
|
||||||
|
my $extra_matches = '';
|
||||||
|
if (defined($options{ps_match_server}) && $options{ps_match_server} ne '') {
|
||||||
|
$extra_matches .= ' | ?{$_.ServerName -match "' . $options{ps_match_server} . '"}';
|
||||||
|
}
|
||||||
|
if (defined($options{ps_match_database}) && $options{ps_match_database} ne '') {
|
||||||
|
$extra_matches .= ' | ?{$_.Database -match "' . $options{ps_match_database} . '"}';
|
||||||
|
}
|
||||||
|
|
||||||
|
$ps .= '
|
||||||
|
try {
|
||||||
|
$ErrorActionPreference = "Stop"
|
||||||
|
';
|
||||||
|
if (defined($options{ps_database}) && $options{ps_database} ne '') {
|
||||||
|
$ps .= '
|
||||||
|
$mailboxes = Get-Mailbox -ResultSize unlimited -Database "' . $options{ps_database} . '"
|
||||||
|
$folder_mailboxes = Get-Mailbox -PublicFolder:$true -ResultSize unlimited -Database "' . $options{ps_database} . '" ' . $extra_matches .'
|
||||||
|
';
|
||||||
|
} elsif (defined($options{ps_server}) && $options{ps_server} ne '') {
|
||||||
|
$ps .= '
|
||||||
|
$mailboxes = Get-Mailbox -ResultSize unlimited -Server "' . $options{ps_server} . '"
|
||||||
|
$folder_mailboxes = Get-Mailbox -PublicFolder:$true -ResultSize unlimited -Server "' . $options{ps_server} . '" ' . $extra_matches .'
|
||||||
|
';
|
||||||
|
} else {
|
||||||
|
$ps .= '
|
||||||
|
$mailboxes = Get-Mailbox -ResultSize unlimited ' . $extra_matches . '
|
||||||
|
$folder_mailboxes = Get-Mailbox -PublicFolder:$true -ResultSize unlimited ' . $extra_matches . '
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
|
$ps .= '
|
||||||
|
$result = @{}
|
||||||
|
$result.users = @{
|
||||||
|
total = 0;
|
||||||
|
over_quota = 0;
|
||||||
|
warning_quota = 0;
|
||||||
|
unlimited = 0;
|
||||||
|
over_quota_details = New-Object System.Collections.Generic.List[Hashtable];
|
||||||
|
warning_quota_details = New-Object System.Collections.Generic.List[Hashtable];
|
||||||
|
unlimited_details = New-Object System.Collections.Generic.List[Hashtable]
|
||||||
|
}
|
||||||
|
$result.public_folders = @{
|
||||||
|
total = 0;
|
||||||
|
over_quota = 0;
|
||||||
|
warning_quota = 0;
|
||||||
|
unlimited = 0;
|
||||||
|
over_quota_details = New-Object System.Collections.Generic.List[Hashtable];
|
||||||
|
warning_quota_details = New-Object System.Collections.Generic.List[Hashtable];
|
||||||
|
unlimited_details = New-Object System.Collections.Generic.List[Hashtable]
|
||||||
|
}
|
||||||
|
$result.group_by_databases = @{}
|
||||||
|
foreach ($mailbox in $mailboxes) {
|
||||||
|
$item = @{}
|
||||||
|
|
||||||
|
$detail = @{
|
||||||
|
database = $mailbox.Database.Name;
|
||||||
|
server_name = $mailbox.ServerName;
|
||||||
|
name = $mailbox.Name
|
||||||
|
}
|
||||||
|
if (-not $result.group_by_databases[$mailbox.Database]) {
|
||||||
|
$result.group_by_databases[$mailbox.Database] = 0
|
||||||
|
}
|
||||||
|
$result.group_by_databases[$mailbox.Database]++
|
||||||
|
$result.users.total++
|
||||||
|
if ($mailbox.ProhibitSendReceiveQuota -eq "unlimited" -and $mailbox.ProhibitSendQuota -eq "unlimited") {
|
||||||
|
$result.users.unlimited++
|
||||||
|
$result.users.unlimited_details.Add($detail)
|
||||||
|
} else {
|
||||||
|
$stat = get-mailboxStatistics -Identity $mailbox.Identity -ErrorAction SilentlyContinue
|
||||||
|
if ($stat) {
|
||||||
|
$size_bytes = $stat.TotalItemSize.Value.ToBytes()
|
||||||
|
if ($mailbox.ProhibitSendQuota -ne "unlimited" -and $size_bytes > $mailbox.ProhibitSendQuota.Value.ToBytes()) {
|
||||||
|
$result.users.over_quota++
|
||||||
|
$result.users.over_quota_details.Add($detail)
|
||||||
|
} elseif ($mailbox.ProhibitSendReceiveQuota -ne "unlimited" -and $size_bytes > $mailbox.ProhibitSendReceiveQuota.Value.ToBytes()) {
|
||||||
|
$result.users.over_quota++
|
||||||
|
$result.users.over_quota_details.Add($detail)
|
||||||
|
} elseif ($mailbox.issueWarningQuota -ne "unlimited" -and $size_bytes > $mailbox.issueWarningQuota.Value.ToBytes()) {
|
||||||
|
$result.users.warning_quota++
|
||||||
|
$result.users.warning_quota_details.Add($detail)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach ($mailbox in $folder_mailboxes) {
|
||||||
|
$item = @{}
|
||||||
|
|
||||||
|
$detail = @{
|
||||||
|
database = $mailbox.Database.Name;
|
||||||
|
server_name = $mailbox.ServerName;
|
||||||
|
name = $mailbox.Name
|
||||||
|
}
|
||||||
|
$result.public_folders.total++
|
||||||
|
if ($mailbox.ProhibitSendReceiveQuota -eq "unlimited" -and $mailbox.ProhibitSendQuota -eq "unlimited") {
|
||||||
|
$result.public_folders.unlimited++
|
||||||
|
$result.public_folders.unlimited_details.Add($detail)
|
||||||
|
} else {
|
||||||
|
$stat = get-mailboxStatistics -Identity $mailbox.Identity -ErrorAction SilentlyContinue
|
||||||
|
if ($stat) {
|
||||||
|
$size_bytes = $stat.TotalItemSize.Value.ToBytes()
|
||||||
|
if ($mailbox.ProhibitSendQuota -ne "unlimited" -and $size_bytes > $mailbox.ProhibitSendQuota.Value.ToBytes()) {
|
||||||
|
$result.public_folders.over_quota++
|
||||||
|
$result.public_folders.over_quota_details.Add($detail)
|
||||||
|
} elseif ($mailbox.ProhibitSendReceiveQuota -ne "unlimited" -and $size_bytes > $mailbox.ProhibitSendReceiveQuota.Value.ToBytes()) {
|
||||||
|
$result.public_folders.over_quota++
|
||||||
|
$result.public_folders.over_quota_details.Add($detail)
|
||||||
|
} elseif ($mailbox.issueWarningQuota -ne "unlimited" -and $size_bytes > $mailbox.issueWarningQuota.Value.ToBytes()) {
|
||||||
|
$result.public_folders.warning_quota++
|
||||||
|
$result.public_folders.warning_quota_details.Add($detail)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$jsonString = $result | ConvertTo-JSON-20
|
||||||
|
Write-Host $jsonString
|
||||||
|
exit 0
|
||||||
|
} catch {
|
||||||
|
Write-Host $Error[0].Exception
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
';
|
||||||
|
|
||||||
|
return $ps;
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
__END__
|
||||||
|
|
||||||
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
|
Method to check Exchange mailboxes.
|
||||||
|
|
||||||
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::mapimailbox;
|
package centreon::common::powershell::exchange::mapimailbox;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -98,6 +98,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 mapi connection on a specific mailbox.
|
Method to check Exchange mapi connection on a specific mailbox.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::outlookwebservices;
|
package centreon::common::powershell::exchange::outlookwebservices;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -116,6 +116,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 outlook autodiscovery webservices.
|
Method to check Exchange outlook autodiscovery webservices.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,18 +18,18 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::owamailbox;
|
package centreon::common::powershell::exchange::owamailbox;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
my $no_trust_ssl = (defined($options{no_trust_ssl})) ? '' : '-TrustAnySSLCertificate';
|
my $no_trust_ssl = (defined($options{no_trust_ssl})) ? '' : '-TrustAnySSLCertificate';
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -114,6 +114,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 owa connection on a specific mailbox.
|
Method to check Exchange owa connection on a specific mailbox.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,7 +18,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::powershell;
|
package centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::queues;
|
package centreon::common::powershell::exchange::queues;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
use centreon::common::powershell::functions;
|
use centreon::common::powershell::functions;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
$ps .= centreon::common::powershell::functions::escape_jsonstring(%options);
|
$ps .= centreon::common::powershell::functions::escape_jsonstring(%options);
|
||||||
$ps .= centreon::common::powershell::functions::convert_to_json(%options);
|
$ps .= centreon::common::powershell::functions::convert_to_json(%options);
|
||||||
|
|
||||||
@ -69,6 +69,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 queues.
|
Method to check Exchange queues.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::replicationhealth;
|
package centreon::common::powershell::exchange::replicationhealth;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -102,6 +102,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 queues.
|
Method to check Exchange queues.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -18,17 +18,17 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package centreon::common::powershell::exchange::2010::services;
|
package centreon::common::powershell::exchange::services;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use centreon::plugins::misc;
|
use centreon::plugins::misc;
|
||||||
use centreon::common::powershell::exchange::2010::powershell;
|
use centreon::common::powershell::exchange::powershell;
|
||||||
|
|
||||||
sub get_powershell {
|
sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = centreon::common::powershell::exchange::2010::powershell::powershell_init(%options);
|
my $ps = centreon::common::powershell::exchange::powershell::powershell_init(%options);
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
@ -104,6 +104,6 @@ __END__
|
|||||||
|
|
||||||
=head1 DESCRIPTION
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
Method to check Exchange 2010 services running or not running.
|
Method to check Exchange services running or not running.
|
||||||
|
|
||||||
=cut
|
=cut
|
@ -621,12 +621,6 @@ We exclude the module ``IO::Socket::INET6`` (Perl 5.14 has the full set of IPv6
|
|||||||
-M Net::FTPSSL ^
|
-M Net::FTPSSL ^
|
||||||
-M Authen::NTLM ^
|
-M Authen::NTLM ^
|
||||||
-M JSON::XS ^
|
-M JSON::XS ^
|
||||||
-M centreon::plugins::script ^
|
|
||||||
-M centreon::plugins::backend::http::lwp ^
|
|
||||||
-M centreon::plugins::backend::http::curl ^
|
|
||||||
-M centreon::plugins::backend::http::useragent ^
|
|
||||||
-M centreon::plugins::backend::http::curlconstants ^
|
|
||||||
-M centreon::plugins::alternative::Getopt ^
|
|
||||||
-M apps::backup::netbackup::local::plugin ^
|
-M apps::backup::netbackup::local::plugin ^
|
||||||
-M apps::backup::netbackup::local::mode::dedupstatus ^
|
-M apps::backup::netbackup::local::mode::dedupstatus ^
|
||||||
-M apps::backup::netbackup::local::mode::drivecleaning ^
|
-M apps::backup::netbackup::local::mode::drivecleaning ^
|
||||||
@ -637,66 +631,78 @@ We exclude the module ``IO::Socket::INET6`` (Perl 5.14 has the full set of IPv6
|
|||||||
-M apps::backup::veeam::local::plugin ^
|
-M apps::backup::veeam::local::plugin ^
|
||||||
-M apps::backup::veeam::local::mode::jobstatus ^
|
-M apps::backup::veeam::local::mode::jobstatus ^
|
||||||
-M apps::backup::veeam::local::mode::listjobs ^
|
-M apps::backup::veeam::local::mode::listjobs ^
|
||||||
-M apps::activedirectory::local::plugin ^
|
-M apps::backup::veeam::local::mode::tapejobs ^
|
||||||
-M apps::activedirectory::local::mode::dcdiag ^
|
-M apps::centreon::local::plugin ^
|
||||||
-M apps::activedirectory::local::mode::dfsrbacklog ^
|
-M apps::centreon::local::mode::downtimetrap ^
|
||||||
-M apps::activedirectory::local::mode::netdom ^
|
-M apps::centreon::local::mode::centreonpluginsversion ^
|
||||||
-M apps::citrix::local::plugin ^
|
-M apps::citrix::local::plugin ^
|
||||||
-M apps::citrix::local::mode::license ^
|
-M apps::citrix::local::mode::license ^
|
||||||
-M apps::citrix::local::mode::session ^
|
-M apps::citrix::local::mode::session ^
|
||||||
-M apps::citrix::local::mode::zone ^
|
-M apps::citrix::local::mode::zone ^
|
||||||
-M apps::citrix::local::mode::folder ^
|
-M apps::citrix::local::mode::folder ^
|
||||||
-M apps::iis::local::plugin ^
|
-M apps::microsoft::activedirectory::local::plugin ^
|
||||||
-M apps::iis::local::mode::listapplicationpools ^
|
-M apps::microsoft::activedirectory::local::mode::dcdiag ^
|
||||||
-M apps::iis::local::mode::applicationpoolstate ^
|
-M apps::microsoft::activedirectory::local::mode::dfsrbacklog ^
|
||||||
-M apps::iis::local::mode::listsites ^
|
-M apps::microsoft::activedirectory::local::mode::netdom ^
|
||||||
-M apps::iis::local::mode::webservicestatistics ^
|
-M apps::microsoft::exchange::local::plugin ^
|
||||||
-M apps::exchange::2010::local::plugin ^
|
-M apps::microsoft::exchange::local::mode::activesyncmailbox ^
|
||||||
-M apps::exchange::2010::local::mode::activesyncmailbox ^
|
-M apps::microsoft::exchange::local::mode::databases ^
|
||||||
-M apps::exchange::2010::local::mode::databases ^
|
-M apps::microsoft::exchange::local::mode::listdatabases ^
|
||||||
-M apps::exchange::2010::local::mode::listdatabases ^
|
-M apps::microsoft::exchange::local::mode::imapmailbox ^
|
||||||
-M apps::exchange::2010::local::mode::imapmailbox ^
|
-M apps::microsoft::exchange::local::mode::mapimailbox ^
|
||||||
-M apps::exchange::2010::local::mode::mapimailbox ^
|
-M apps::microsoft::exchange::local::mode::outlookwebservices ^
|
||||||
-M apps::exchange::2010::local::mode::outlookwebservices ^
|
-M apps::microsoft::exchange::local::mode::owamailbox ^
|
||||||
-M apps::exchange::2010::local::mode::owamailbox ^
|
-M apps::microsoft::exchange::local::mode::queues ^
|
||||||
-M apps::exchange::2010::local::mode::queues ^
|
-M apps::microsoft::exchange::local::mode::replicationhealth ^
|
||||||
-M apps::exchange::2010::local::mode::replicationhealth ^
|
-M apps::microsoft::exchange::local::mode::services ^
|
||||||
-M apps::exchange::2010::local::mode::services ^
|
-M apps::microsoft::hyperv::2012::local::plugin ^
|
||||||
-M centreon::common::powershell::exchange::2010::powershell ^
|
-M apps::microsoft::hyperv::2012::local::mode::listnodevms ^
|
||||||
-M apps::cluster::mscs::local::plugin ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmintegrationservice ^
|
||||||
-M apps::cluster::mscs::local::mode::listnodes ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmsnapshot ^
|
||||||
-M apps::cluster::mscs::local::mode::listresources ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmvmstatus ^
|
||||||
-M apps::cluster::mscs::local::mode::networkstatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodeintegrationservice ^
|
||||||
-M apps::cluster::mscs::local::mode::nodestatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodereplication ^
|
||||||
-M apps::cluster::mscs::local::mode::resourcestatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodesnapshot ^
|
||||||
-M apps::cluster::mscs::local::mode::resourcegroupstatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodevmstatus ^
|
||||||
-M os::windows::local::plugin ^
|
-M apps::microsoft::iis::local::plugin ^
|
||||||
-M os::windows::local::mode::cmdreturn ^
|
-M apps::microsoft::iis::local::mode::listapplicationpools ^
|
||||||
-M os::windows::local::mode::ntp ^
|
-M apps::microsoft::iis::local::mode::applicationpoolstate ^
|
||||||
-M os::windows::local::mode::pendingreboot ^
|
-M apps::microsoft::iis::local::mode::listsites ^
|
||||||
-M os::windows::local::mode::sessions ^
|
-M apps::microsoft::iis::local::mode::webservicestatistics ^
|
||||||
-M os::windows::local::mode::liststorages ^
|
-M apps::microsoft::mscs::local::plugin ^
|
||||||
-M centreon::common::powershell::windows::liststorages ^
|
-M apps::microsoft::mscs::local::mode::listnodes ^
|
||||||
-M storage::dell::compellent::local::plugin ^
|
-M apps::microsoft::mscs::local::mode::listresources ^
|
||||||
-M storage::dell::compellent::local::mode::hbausage ^
|
-M apps::microsoft::mscs::local::mode::networkstatus ^
|
||||||
-M storage::dell::compellent::local::mode::volumeusage ^
|
-M apps::microsoft::mscs::local::mode::nodestatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::plugin ^
|
-M apps::microsoft::mscs::local::mode::resourcestatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::hardware ^
|
-M apps::microsoft::mscs::local::mode::resourcegroupstatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::temperature ^
|
-M apps::microsoft::sccm::local::plugin ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::hwstatus ^
|
-M apps::microsoft::sccm::local::mode::databasereplicationstatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::memory ^
|
-M apps::microsoft::sccm::local::mode::sitestatus ^
|
||||||
-M apps::centreon::local::plugin ^
|
-M apps::microsoft::wsus::local::plugin ^
|
||||||
-M apps::centreon::local::mode::downtimetrap ^
|
-M apps::microsoft::wsus::local::mode::computersstatus ^
|
||||||
-M apps::centreon::local::mode::centreonpluginsversion ^
|
-M apps::microsoft::wsus::local::mode::updatesstatus ^
|
||||||
-M apps::hyperv::2012::local::plugin ^
|
-M apps::microsoft::wsus::local::mode::synchronisationstatus ^
|
||||||
-M apps::hyperv::2012::local::mode::listnodevms ^
|
-M apps::microsoft::wsus::local::mode::serverstatistics ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmintegrationservice ^
|
-M apps::protocols::ldap::plugin ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmsnapshot ^
|
-M apps::protocols::ldap::mode::login ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmvmstatus ^
|
-M apps::protocols::ldap::mode::search ^
|
||||||
-M apps::hyperv::2012::local::mode::nodeintegrationservice ^
|
-M apps::protocols::ftp::plugin ^
|
||||||
-M apps::hyperv::2012::local::mode::nodereplication ^
|
-M apps::protocols::ftp::mode::commands ^
|
||||||
-M apps::hyperv::2012::local::mode::nodesnapshot ^
|
-M apps::protocols::ftp::mode::date ^
|
||||||
-M apps::hyperv::2012::local::mode::nodevmstatus ^
|
-M apps::protocols::ftp::mode::filescount ^
|
||||||
|
-M apps::protocols::ftp::mode::login ^
|
||||||
|
-M apps::protocols::http::plugin ^
|
||||||
|
-M apps::protocols::http::mode::expectedcontent ^
|
||||||
|
-M apps::protocols::http::mode::response ^
|
||||||
|
-M apps::protocols::tcp::plugin ^
|
||||||
|
-M apps::protocols::tcp::mode::responsetime ^
|
||||||
|
-M apps::protocols::x509::plugin ^
|
||||||
|
-M apps::protocols::x509::mode::certificate ^
|
||||||
|
-M apps::protocols::x509::mode::validity ^
|
||||||
|
-M centreon::common::protocols::ldap::lib::ldap ^
|
||||||
|
-M centreon::common::powershell::exchange::powershell ^
|
||||||
|
-M centreon::common::powershell::functions ^
|
||||||
-M centreon::common::powershell::hyperv::2012::listnodevms ^
|
-M centreon::common::powershell::hyperv::2012::listnodevms ^
|
||||||
-M centreon::common::powershell::hyperv::2012::nodeintegrationservice ^
|
-M centreon::common::powershell::hyperv::2012::nodeintegrationservice ^
|
||||||
-M centreon::common::powershell::hyperv::2012::nodereplication ^
|
-M centreon::common::powershell::hyperv::2012::nodereplication ^
|
||||||
@ -705,31 +711,35 @@ We exclude the module ``IO::Socket::INET6`` (Perl 5.14 has the full set of IPv6
|
|||||||
-M centreon::common::powershell::hyperv::2012::scvmmintegrationservice ^
|
-M centreon::common::powershell::hyperv::2012::scvmmintegrationservice ^
|
||||||
-M centreon::common::powershell::hyperv::2012::scvmmsnapshot ^
|
-M centreon::common::powershell::hyperv::2012::scvmmsnapshot ^
|
||||||
-M centreon::common::powershell::hyperv::2012::scvmmvmstatus ^
|
-M centreon::common::powershell::hyperv::2012::scvmmvmstatus ^
|
||||||
-M apps::protocols::http::plugin ^
|
-M centreon::common::powershell::sccm::databasereplicationstatus ^
|
||||||
-M apps::protocols::http::mode::expectedcontent ^
|
-M centreon::common::powershell::sccm::sitestatus ^
|
||||||
-M apps::protocols::http::mode::response ^
|
|
||||||
-M apps::protocols::tcp::plugin ^
|
|
||||||
-M apps::protocols::tcp::mode::responsetime ^
|
|
||||||
-M apps::protocols::ftp::plugin ^
|
|
||||||
-M apps::protocols::ftp::mode::commands ^
|
|
||||||
-M apps::protocols::ftp::mode::date ^
|
|
||||||
-M apps::protocols::ftp::mode::filescount ^
|
|
||||||
-M apps::protocols::ftp::mode::login ^
|
|
||||||
-M apps::backup::veeam::local::plugin ^
|
|
||||||
-M apps::backup::veeam::local::mode::jobstatus ^
|
|
||||||
-M apps::backup::veeam::local::mode::listjobs ^
|
|
||||||
-M centreon::common::powershell::veeam::jobstatus ^
|
-M centreon::common::powershell::veeam::jobstatus ^
|
||||||
-M centreon::common::powershell::veeam::listjobs ^
|
-M centreon::common::powershell::veeam::listjobs ^
|
||||||
|
-M centreon::common::powershell::veeam::tapejobs ^
|
||||||
|
-M centreon::common::powershell::windows::liststorages ^
|
||||||
-M centreon::common::powershell::wsus::computersstatus ^
|
-M centreon::common::powershell::wsus::computersstatus ^
|
||||||
-M centreon::common::powershell::wsus::updatesstatus ^
|
-M centreon::common::powershell::wsus::updatesstatus ^
|
||||||
-M centreon::common::powershell::wsus::synchronisationstatus ^
|
-M centreon::common::powershell::wsus::synchronisationstatus ^
|
||||||
-M centreon::common::powershell::wsus::serverstatistics ^
|
-M centreon::common::powershell::wsus::serverstatistics ^
|
||||||
-M apps::wsus::local::plugin ^
|
-M centreon::plugins::alternative::Getopt ^
|
||||||
-M apps::wsus::local::mode::computersstatus ^
|
-M centreon::plugins::backend::http::lwp ^
|
||||||
-M apps::wsus::local::mode::updatesstatus ^
|
-M centreon::plugins::backend::http::curl ^
|
||||||
-M apps::wsus::local::mode::synchronisationstatus ^
|
-M centreon::plugins::backend::http::curlconstants ^
|
||||||
-M apps::wsus::local::mode::serverstatistics ^
|
-M centreon::plugins::script ^
|
||||||
-M centreon::common::powershell::functions ^
|
-M hardware::devices::safenet::hsm::protecttoolkit::plugin ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::hardware ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::temperature ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::hwstatus ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::memory ^
|
||||||
|
-M os::windows::local::plugin ^
|
||||||
|
-M os::windows::local::mode::cmdreturn ^
|
||||||
|
-M os::windows::local::mode::ntp ^
|
||||||
|
-M os::windows::local::mode::pendingreboot ^
|
||||||
|
-M os::windows::local::mode::sessions ^
|
||||||
|
-M os::windows::local::mode::liststorages ^
|
||||||
|
-M storage::dell::compellent::local::plugin ^
|
||||||
|
-M storage::dell::compellent::local::mode::hbausage ^
|
||||||
|
-M storage::dell::compellent::local::mode::volumeusage ^
|
||||||
--verbose
|
--verbose
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
@ -621,12 +621,6 @@ Nous excluons le module ``IO::Socket::INET6`` (Perl 5.14 intègre la fonctionnal
|
|||||||
-M Net::FTPSSL ^
|
-M Net::FTPSSL ^
|
||||||
-M Authen::NTLM ^
|
-M Authen::NTLM ^
|
||||||
-M JSON::XS ^
|
-M JSON::XS ^
|
||||||
-M centreon::plugins::script ^
|
|
||||||
-M centreon::plugins::backend::http::lwp ^
|
|
||||||
-M centreon::plugins::backend::http::curl ^
|
|
||||||
-M centreon::plugins::backend::http::useragent ^
|
|
||||||
-M centreon::plugins::backend::http::curlconstants ^
|
|
||||||
-M centreon::plugins::alternative::Getopt ^
|
|
||||||
-M apps::backup::netbackup::local::plugin ^
|
-M apps::backup::netbackup::local::plugin ^
|
||||||
-M apps::backup::netbackup::local::mode::dedupstatus ^
|
-M apps::backup::netbackup::local::mode::dedupstatus ^
|
||||||
-M apps::backup::netbackup::local::mode::drivecleaning ^
|
-M apps::backup::netbackup::local::mode::drivecleaning ^
|
||||||
@ -637,66 +631,78 @@ Nous excluons le module ``IO::Socket::INET6`` (Perl 5.14 intègre la fonctionnal
|
|||||||
-M apps::backup::veeam::local::plugin ^
|
-M apps::backup::veeam::local::plugin ^
|
||||||
-M apps::backup::veeam::local::mode::jobstatus ^
|
-M apps::backup::veeam::local::mode::jobstatus ^
|
||||||
-M apps::backup::veeam::local::mode::listjobs ^
|
-M apps::backup::veeam::local::mode::listjobs ^
|
||||||
-M apps::activedirectory::local::plugin ^
|
-M apps::backup::veeam::local::mode::tapejobs ^
|
||||||
-M apps::activedirectory::local::mode::dcdiag ^
|
-M apps::centreon::local::plugin ^
|
||||||
-M apps::activedirectory::local::mode::dfsrbacklog ^
|
-M apps::centreon::local::mode::downtimetrap ^
|
||||||
-M apps::activedirectory::local::mode::netdom ^
|
-M apps::centreon::local::mode::centreonpluginsversion ^
|
||||||
-M apps::citrix::local::plugin ^
|
-M apps::citrix::local::plugin ^
|
||||||
-M apps::citrix::local::mode::license ^
|
-M apps::citrix::local::mode::license ^
|
||||||
-M apps::citrix::local::mode::session ^
|
-M apps::citrix::local::mode::session ^
|
||||||
-M apps::citrix::local::mode::zone ^
|
-M apps::citrix::local::mode::zone ^
|
||||||
-M apps::citrix::local::mode::folder ^
|
-M apps::citrix::local::mode::folder ^
|
||||||
-M apps::iis::local::plugin ^
|
-M apps::microsoft::activedirectory::local::plugin ^
|
||||||
-M apps::iis::local::mode::listapplicationpools ^
|
-M apps::microsoft::activedirectory::local::mode::dcdiag ^
|
||||||
-M apps::iis::local::mode::applicationpoolstate ^
|
-M apps::microsoft::activedirectory::local::mode::dfsrbacklog ^
|
||||||
-M apps::iis::local::mode::listsites ^
|
-M apps::microsoft::activedirectory::local::mode::netdom ^
|
||||||
-M apps::iis::local::mode::webservicestatistics ^
|
-M apps::microsoft::exchange::local::plugin ^
|
||||||
-M apps::exchange::2010::local::plugin ^
|
-M apps::microsoft::exchange::local::mode::activesyncmailbox ^
|
||||||
-M apps::exchange::2010::local::mode::activesyncmailbox ^
|
-M apps::microsoft::exchange::local::mode::databases ^
|
||||||
-M apps::exchange::2010::local::mode::databases ^
|
-M apps::microsoft::exchange::local::mode::listdatabases ^
|
||||||
-M apps::exchange::2010::local::mode::listdatabases ^
|
-M apps::microsoft::exchange::local::mode::imapmailbox ^
|
||||||
-M apps::exchange::2010::local::mode::imapmailbox ^
|
-M apps::microsoft::exchange::local::mode::mapimailbox ^
|
||||||
-M apps::exchange::2010::local::mode::mapimailbox ^
|
-M apps::microsoft::exchange::local::mode::outlookwebservices ^
|
||||||
-M apps::exchange::2010::local::mode::outlookwebservices ^
|
-M apps::microsoft::exchange::local::mode::owamailbox ^
|
||||||
-M apps::exchange::2010::local::mode::owamailbox ^
|
-M apps::microsoft::exchange::local::mode::queues ^
|
||||||
-M apps::exchange::2010::local::mode::queues ^
|
-M apps::microsoft::exchange::local::mode::replicationhealth ^
|
||||||
-M apps::exchange::2010::local::mode::replicationhealth ^
|
-M apps::microsoft::exchange::local::mode::services ^
|
||||||
-M apps::exchange::2010::local::mode::services ^
|
-M apps::microsoft::hyperv::2012::local::plugin ^
|
||||||
-M centreon::common::powershell::exchange::2010::powershell ^
|
-M apps::microsoft::hyperv::2012::local::mode::listnodevms ^
|
||||||
-M apps::cluster::mscs::local::plugin ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmintegrationservice ^
|
||||||
-M apps::cluster::mscs::local::mode::listnodes ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmsnapshot ^
|
||||||
-M apps::cluster::mscs::local::mode::listresources ^
|
-M apps::microsoft::hyperv::2012::local::mode::scvmmvmstatus ^
|
||||||
-M apps::cluster::mscs::local::mode::networkstatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodeintegrationservice ^
|
||||||
-M apps::cluster::mscs::local::mode::nodestatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodereplication ^
|
||||||
-M apps::cluster::mscs::local::mode::resourcestatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodesnapshot ^
|
||||||
-M apps::cluster::mscs::local::mode::resourcegroupstatus ^
|
-M apps::microsoft::hyperv::2012::local::mode::nodevmstatus ^
|
||||||
-M os::windows::local::plugin ^
|
-M apps::microsoft::iis::local::plugin ^
|
||||||
-M os::windows::local::mode::cmdreturn ^
|
-M apps::microsoft::iis::local::mode::listapplicationpools ^
|
||||||
-M os::windows::local::mode::ntp ^
|
-M apps::microsoft::iis::local::mode::applicationpoolstate ^
|
||||||
-M os::windows::local::mode::pendingreboot ^
|
-M apps::microsoft::iis::local::mode::listsites ^
|
||||||
-M os::windows::local::mode::sessions ^
|
-M apps::microsoft::iis::local::mode::webservicestatistics ^
|
||||||
-M os::windows::local::mode::liststorages ^
|
-M apps::microsoft::mscs::local::plugin ^
|
||||||
-M centreon::common::powershell::windows::liststorages ^
|
-M apps::microsoft::mscs::local::mode::listnodes ^
|
||||||
-M storage::dell::compellent::local::plugin ^
|
-M apps::microsoft::mscs::local::mode::listresources ^
|
||||||
-M storage::dell::compellent::local::mode::hbausage ^
|
-M apps::microsoft::mscs::local::mode::networkstatus ^
|
||||||
-M storage::dell::compellent::local::mode::volumeusage ^
|
-M apps::microsoft::mscs::local::mode::nodestatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::plugin ^
|
-M apps::microsoft::mscs::local::mode::resourcestatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::hardware ^
|
-M apps::microsoft::mscs::local::mode::resourcegroupstatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::temperature ^
|
-M apps::microsoft::sccm::local::plugin ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::hwstatus ^
|
-M apps::microsoft::sccm::local::mode::databasereplicationstatus ^
|
||||||
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::memory ^
|
-M apps::microsoft::sccm::local::mode::sitestatus ^
|
||||||
-M apps::centreon::local::plugin ^
|
-M apps::microsoft::wsus::local::plugin ^
|
||||||
-M apps::centreon::local::mode::downtimetrap ^
|
-M apps::microsoft::wsus::local::mode::computersstatus ^
|
||||||
-M apps::centreon::local::mode::centreonpluginsversion ^
|
-M apps::microsoft::wsus::local::mode::updatesstatus ^
|
||||||
-M apps::hyperv::2012::local::plugin ^
|
-M apps::microsoft::wsus::local::mode::synchronisationstatus ^
|
||||||
-M apps::hyperv::2012::local::mode::listnodevms ^
|
-M apps::microsoft::wsus::local::mode::serverstatistics ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmintegrationservice ^
|
-M apps::protocols::ldap::plugin ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmsnapshot ^
|
-M apps::protocols::ldap::mode::login ^
|
||||||
-M apps::hyperv::2012::local::mode::scvmmvmstatus ^
|
-M apps::protocols::ldap::mode::search ^
|
||||||
-M apps::hyperv::2012::local::mode::nodeintegrationservice ^
|
-M apps::protocols::ftp::plugin ^
|
||||||
-M apps::hyperv::2012::local::mode::nodereplication ^
|
-M apps::protocols::ftp::mode::commands ^
|
||||||
-M apps::hyperv::2012::local::mode::nodesnapshot ^
|
-M apps::protocols::ftp::mode::date ^
|
||||||
-M apps::hyperv::2012::local::mode::nodevmstatus ^
|
-M apps::protocols::ftp::mode::filescount ^
|
||||||
|
-M apps::protocols::ftp::mode::login ^
|
||||||
|
-M apps::protocols::http::plugin ^
|
||||||
|
-M apps::protocols::http::mode::expectedcontent ^
|
||||||
|
-M apps::protocols::http::mode::response ^
|
||||||
|
-M apps::protocols::tcp::plugin ^
|
||||||
|
-M apps::protocols::tcp::mode::responsetime ^
|
||||||
|
-M apps::protocols::x509::plugin ^
|
||||||
|
-M apps::protocols::x509::mode::certificate ^
|
||||||
|
-M apps::protocols::x509::mode::validity ^
|
||||||
|
-M centreon::common::protocols::ldap::lib::ldap ^
|
||||||
|
-M centreon::common::powershell::exchange::powershell ^
|
||||||
|
-M centreon::common::powershell::functions ^
|
||||||
-M centreon::common::powershell::hyperv::2012::listnodevms ^
|
-M centreon::common::powershell::hyperv::2012::listnodevms ^
|
||||||
-M centreon::common::powershell::hyperv::2012::nodeintegrationservice ^
|
-M centreon::common::powershell::hyperv::2012::nodeintegrationservice ^
|
||||||
-M centreon::common::powershell::hyperv::2012::nodereplication ^
|
-M centreon::common::powershell::hyperv::2012::nodereplication ^
|
||||||
@ -705,31 +711,35 @@ Nous excluons le module ``IO::Socket::INET6`` (Perl 5.14 intègre la fonctionnal
|
|||||||
-M centreon::common::powershell::hyperv::2012::scvmmintegrationservice ^
|
-M centreon::common::powershell::hyperv::2012::scvmmintegrationservice ^
|
||||||
-M centreon::common::powershell::hyperv::2012::scvmmsnapshot ^
|
-M centreon::common::powershell::hyperv::2012::scvmmsnapshot ^
|
||||||
-M centreon::common::powershell::hyperv::2012::scvmmvmstatus ^
|
-M centreon::common::powershell::hyperv::2012::scvmmvmstatus ^
|
||||||
-M apps::protocols::http::plugin ^
|
-M centreon::common::powershell::sccm::databasereplicationstatus ^
|
||||||
-M apps::protocols::http::mode::expectedcontent ^
|
-M centreon::common::powershell::sccm::sitestatus ^
|
||||||
-M apps::protocols::http::mode::response ^
|
|
||||||
-M apps::protocols::tcp::plugin ^
|
|
||||||
-M apps::protocols::tcp::mode::responsetime ^
|
|
||||||
-M apps::protocols::ftp::plugin ^
|
|
||||||
-M apps::protocols::ftp::mode::commands ^
|
|
||||||
-M apps::protocols::ftp::mode::date ^
|
|
||||||
-M apps::protocols::ftp::mode::filescount ^
|
|
||||||
-M apps::protocols::ftp::mode::login ^
|
|
||||||
-M apps::backup::veeam::local::plugin ^
|
|
||||||
-M apps::backup::veeam::local::mode::jobstatus ^
|
|
||||||
-M apps::backup::veeam::local::mode::listjobs ^
|
|
||||||
-M centreon::common::powershell::veeam::jobstatus ^
|
-M centreon::common::powershell::veeam::jobstatus ^
|
||||||
-M centreon::common::powershell::veeam::listjobs ^
|
-M centreon::common::powershell::veeam::listjobs ^
|
||||||
|
-M centreon::common::powershell::veeam::tapejobs ^
|
||||||
|
-M centreon::common::powershell::windows::liststorages ^
|
||||||
-M centreon::common::powershell::wsus::computersstatus ^
|
-M centreon::common::powershell::wsus::computersstatus ^
|
||||||
-M centreon::common::powershell::wsus::updatesstatus ^
|
-M centreon::common::powershell::wsus::updatesstatus ^
|
||||||
-M centreon::common::powershell::wsus::synchronisationstatus ^
|
-M centreon::common::powershell::wsus::synchronisationstatus ^
|
||||||
-M centreon::common::powershell::wsus::serverstatistics ^
|
-M centreon::common::powershell::wsus::serverstatistics ^
|
||||||
-M apps::wsus::local::plugin ^
|
-M centreon::plugins::alternative::Getopt ^
|
||||||
-M apps::wsus::local::mode::computersstatus ^
|
-M centreon::plugins::backend::http::lwp ^
|
||||||
-M apps::wsus::local::mode::updatesstatus ^
|
-M centreon::plugins::backend::http::curl ^
|
||||||
-M apps::wsus::local::mode::synchronisationstatus ^
|
-M centreon::plugins::backend::http::curlconstants ^
|
||||||
-M apps::wsus::local::mode::serverstatistics ^
|
-M centreon::plugins::script ^
|
||||||
-M centreon::common::powershell::functions ^
|
-M hardware::devices::safenet::hsm::protecttoolkit::plugin ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::hardware ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::temperature ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::hwstatus ^
|
||||||
|
-M hardware::devices::safenet::hsm::protecttoolkit::mode::components::memory ^
|
||||||
|
-M os::windows::local::plugin ^
|
||||||
|
-M os::windows::local::mode::cmdreturn ^
|
||||||
|
-M os::windows::local::mode::ntp ^
|
||||||
|
-M os::windows::local::mode::pendingreboot ^
|
||||||
|
-M os::windows::local::mode::sessions ^
|
||||||
|
-M os::windows::local::mode::liststorages ^
|
||||||
|
-M storage::dell::compellent::local::plugin ^
|
||||||
|
-M storage::dell::compellent::local::mode::hbausage ^
|
||||||
|
-M storage::dell::compellent::local::mode::volumeusage ^
|
||||||
--verbose
|
--verbose
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
Loading…
x
Reference in New Issue
Block a user