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

Fix: Remove obsolete code in monitoring common functions dev-21.10.x #11844

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions www/include/monitoring/common-Func.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,6 @@
exit();
}

function getMyHostRow($host_id = null, $rowdata)
{
global $pearDB;
if (!$host_id) {
exit();
}
while (1) {
$DBRESULT = $pearDB->query("SELECT host_" . $rowdata .
", host_template_model_htm_id FROM host WHERE host_id = '" . CentreonDB::escape($host_id) . "' LIMIT 1");
$row = $DBRESULT->fetchRow();
if ($row["host_" . $rowdata]) {
return $row["host_$rowdata"];
} elseif ($row["host_template_model_htm_id"]) {
$host_id = $row["host_template_model_htm_id"];
} else {
break;
}
}
}

function get_user_param($user_id, $pearDB)
{
$list_param = array(
Expand Down