From 6eef702f1f01efd70ab0e20dc16d893b00b2abd6 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 14 Aug 2015 10:12:28 +0200 Subject: [PATCH] + Change directory 'mysql' to 'sql' for centreon (maybe centreon will be compatible with other databases in future...) --- apps/centreon/{mysql => sql}/mode/countnotifications.pm | 4 ++-- apps/centreon/{mysql => sql}/mode/countproblems.pm | 4 ++-- apps/centreon/{mysql => sql}/mode/partitioning.pm | 2 +- apps/centreon/{mysql => sql}/mode/pollerdelay.pm | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename apps/centreon/{mysql => sql}/mode/countnotifications.pm (96%) rename apps/centreon/{mysql => sql}/mode/countproblems.pm (97%) rename apps/centreon/{mysql => sql}/mode/partitioning.pm (99%) rename apps/centreon/{mysql => sql}/mode/pollerdelay.pm (98%) diff --git a/apps/centreon/mysql/mode/countnotifications.pm b/apps/centreon/sql/mode/countnotifications.pm similarity index 96% rename from apps/centreon/mysql/mode/countnotifications.pm rename to apps/centreon/sql/mode/countnotifications.pm index 1f7492488..e3faf7f31 100644 --- a/apps/centreon/mysql/mode/countnotifications.pm +++ b/apps/centreon/sql/mode/countnotifications.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::centreon::mysql::mode::countnotifications; +package apps::centreon::sql::mode::countnotifications; use base qw(centreon::plugins::mode); @@ -88,7 +88,7 @@ sub run { # $options{sql} = sqlmode object $self->{sql} = $options{sql}; - $self->{statefile_cache}->read(statefile => 'mysql_' . $self->{mode} . '_' . $self->{sql}->get_unique_id4save()); + $self->{statefile_cache}->read(statefile => 'sql_' . $self->{mode} . '_' . $self->{sql}->get_unique_id4save()); my $old_timestamp = $self->{statefile_cache}->get(name => 'last_timestamp'); my $new_datas = { last_timestamp => time() }; $self->{statefile_cache}->write(data => $new_datas); diff --git a/apps/centreon/mysql/mode/countproblems.pm b/apps/centreon/sql/mode/countproblems.pm similarity index 97% rename from apps/centreon/mysql/mode/countproblems.pm rename to apps/centreon/sql/mode/countproblems.pm index d1fd0127d..8a58ee593 100644 --- a/apps/centreon/mysql/mode/countproblems.pm +++ b/apps/centreon/sql/mode/countproblems.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::centreon::mysql::mode::countproblems; +package apps::centreon::sql::mode::countproblems; use base qw(centreon::plugins::mode); @@ -121,7 +121,7 @@ sub run { # $options{sql} = sqlmode object $self->{sql} = $options{sql}; - $self->{statefile_cache}->read(statefile => 'mysql_' . $self->{mode} . '_' . $self->{sql}->get_unique_id4save()); + $self->{statefile_cache}->read(statefile => 'sql_' . $self->{mode} . '_' . $self->{sql}->get_unique_id4save()); my $old_timestamp = $self->{statefile_cache}->get(name => 'last_timestamp'); my $new_datas = { last_timestamp => time() }; $self->{statefile_cache}->write(data => $new_datas); diff --git a/apps/centreon/mysql/mode/partitioning.pm b/apps/centreon/sql/mode/partitioning.pm similarity index 99% rename from apps/centreon/mysql/mode/partitioning.pm rename to apps/centreon/sql/mode/partitioning.pm index 2baae3fc4..0d1d2f8fd 100644 --- a/apps/centreon/mysql/mode/partitioning.pm +++ b/apps/centreon/sql/mode/partitioning.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::centreon::mysql::mode::partitioning; +package apps::centreon::sql::mode::partitioning; use base qw(centreon::plugins::mode); diff --git a/apps/centreon/mysql/mode/pollerdelay.pm b/apps/centreon/sql/mode/pollerdelay.pm similarity index 98% rename from apps/centreon/mysql/mode/pollerdelay.pm rename to apps/centreon/sql/mode/pollerdelay.pm index 75a2d09cc..38652eb44 100644 --- a/apps/centreon/mysql/mode/pollerdelay.pm +++ b/apps/centreon/sql/mode/pollerdelay.pm @@ -18,7 +18,7 @@ # limitations under the License. # -package apps::centreon::mysql::mode::pollerdelay; +package apps::centreon::sql::mode::pollerdelay; use base qw(centreon::plugins::mode);