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);