mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 21:55:16 +02:00
Fix mssql list databases
This commit is contained in:
parent
738b33c525
commit
4d76bc8e0e
@ -31,10 +31,10 @@ sub new {
|
|||||||
bless $self, $class;
|
bless $self, $class;
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
"filter-database:s" => { name => 'filter_database' },
|
||||||
"filter-database:s" => { name => 'filter_database' },
|
});
|
||||||
});
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ sub run {
|
|||||||
$self->manage_selection(%options);
|
$self->manage_selection(%options);
|
||||||
foreach my $database (sort keys %{$self->{databases}}) {
|
foreach my $database (sort keys %{$self->{databases}}) {
|
||||||
$self->{output}->output_add(long_msg => sprintf("[name = %s] [total = %s]",
|
$self->{output}->output_add(long_msg => sprintf("[name = %s] [total = %s]",
|
||||||
$self->{databases}->{$database}->{name}, $self->{databases}->{$database}->{total}));
|
$self->{databases}->{$database}->{display}, $self->{databases}->{$database}->{total}));
|
||||||
}
|
}
|
||||||
|
|
||||||
$self->{output}->output_add(severity => 'OK',
|
$self->{output}->output_add(severity => 'OK',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user