remove bug with meta services.

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@6852 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2008-10-20 09:11:14 +00:00
parent 949e4ed540
commit 92a55bddba
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ my $host_id;
sub get_value_in_database_metric_id($$$$){
## Get last entry in perfparse database for this service
my $str = "SELECT value FROM data_bin WHERE id_metric = '".$metric_id."'";
my $str = "SELECT `value` FROM `data_bin` WHERE `id_metric` = '".$metric_id."' ORDER BY `ctime` DESC LIMIT 1";
if ($debug) {print $str . "\n";}
my $sth_deb2 = $dbh2->prepare($str);
if (!$sth_deb2->execute) {die "Error:" . $sth_deb2->errstr . "\n";}