Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix #1195 for top counter
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Aug 10, 2015
1 parent 61742ce commit 4195c64
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

$debug = 0;

include_once "@CENTREON_ETC@/centreon.conf.php";
include_once "/etc/centreon/centreon.conf.php";

require_once $centreon_path . "www/class/centreonXMLBGRequest.class.php";
require_once $centreon_path . 'www/class/centreonLang.class.php';
Expand Down Expand Up @@ -216,7 +216,7 @@
if ($pollerList != "") {
$request = "SELECT `last_alive` AS last_update, `running`, name, instance_id " .
"FROM instances " .
"WHERE name IN ($pollerList)";
"WHERE deleted = 0 AND name IN ($pollerList)";
$DBRESULT = $obj->DBC->query($request);
$inactivInstance = "";
while ($ndo = $DBRESULT->fetchRow()) {
Expand Down Expand Up @@ -264,7 +264,8 @@
"WHERE ns.stat_label = 'Service Check Latency' " .
" AND ns.stat_key LIKE 'Average' " .
" AND ns.instance_id = i.instance_id" .
" AND i.name IN ($pollerList)";
" AND i.deleted = 0" .
" AND i.name IN ($pollerList)";
$DBRESULT = $obj->DBC->query($request);
while ($ndo = $DBRESULT->fetchRow()) {
if (!$latency && $ndo["stat_value"] >= 60) {
Expand Down Expand Up @@ -349,4 +350,4 @@
*/
$obj->XML->output();

?>
?>

0 comments on commit 4195c64

Please sign in to comment.