mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-23 13:45:18 +02:00
+ Enhance partitioning mode
This commit is contained in:
parent
9af4340d4d
commit
f2579b4e9c
@ -74,6 +74,7 @@ sub run {
|
|||||||
$self->{output}->output_add(severity => 'OK',
|
$self->{output}->output_add(severity => 'OK',
|
||||||
short_msg => sprintf("All table partitions are up to date"));
|
short_msg => sprintf("All table partitions are up to date"));
|
||||||
foreach my $value (@{$self->{option_results}->{tablename}}) {
|
foreach my $value (@{$self->{option_results}->{tablename}}) {
|
||||||
|
next if ($value eq '');
|
||||||
if ($value !~ /(\S+)\.(\S+)/) {
|
if ($value !~ /(\S+)\.(\S+)/) {
|
||||||
$self->{output}->output_add(severity => 'UNKNOWN',
|
$self->{output}->output_add(severity => 'UNKNOWN',
|
||||||
short_msg => sprintf("Wrong table name '%s'", $value));
|
short_msg => sprintf("Wrong table name '%s'", $value));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user