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

Commit

Permalink
#1000 fix service by servicegroup grid page
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Sep 17, 2015
1 parent abc9fbb commit 8a3c87b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@

ini_set("display_errors", "Off");

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

include_once $centreon_path . "www/class/centreonXMLBGRequest.class.php";
include_once $centreon_path . "www/include/monitoring/status/Common/common-Func.php";
Expand Down Expand Up @@ -133,8 +132,7 @@

$query .= "ORDER BY sg.name " . $order . " "
. "LIMIT " . ($num * $limit) . "," . $limit;

//echo $query;

$DBRESULT = $obj->DBC->query($query);

$numRows = $obj->DBC->numberRows();
Expand Down Expand Up @@ -176,7 +174,7 @@

$query2 = "SELECT SQL_CALC_FOUND_ROWS DISTINCT sg.name AS sg_name, sg.alias, h.name as host_name, h.state as host_state, h.icon_image, h.host_id, s.state, s.description, s.service_id "
. "FROM servicegroups sg, services_servicegroups sgm, services s, hosts h "
. "WHERE h.host_id = s.host_id AND s.host_id = sgm.host_id AND s.service_id=sgm.service_id ";
. "WHERE h.host_id = s.host_id AND s.host_id = sgm.host_id AND s.service_id=sgm.service_id AND sg.servicegroup_id=sgm.servicegroup_id ";

$query2 .= $s_search
. $sg_search
Expand Down

0 comments on commit 8a3c87b

Please sign in to comment.