+ Change directory 'mysql' to 'sql' for centreon (maybe centreon will be compatible with other databases in future...)

This commit is contained in:
garnier-quentin 2015-08-14 10:12:28 +02:00
parent 7854d0fb4c
commit 6eef702f1f
4 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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