summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-22 16:08:35 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-22 16:08:35 +0000
commitcfdccc6dd4f9d313f6cdc34f62f6453a1f5a1a0b (patch)
treef1c9d0192496011e899f91dd9575db73d5cfc77a /frontends/php/hosts.php
parent1e241634d9beb1dc6368d270f8be45d158c66a18 (diff)
- added hosekeeper support for frontend (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2675 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
-rw-r--r--frontends/php/hosts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index 43bba517..ff9cbef6 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -167,11 +167,12 @@
$db_hosts=DBselect("select hostid from hosts");
while($db_host=DBfetch($db_hosts))
{
+ $host=get_host_by_hostid($db_host["hostid"]);
+
if(!in_array($db_host["hostid"],$hosts)) continue;
if(!delete_host($db_host["hostid"])) continue;
$result = 1;
- $host=get_host_by_hostid($db_host["hostid"]);
add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_HOST,
"Host [".$host["host"]."]");
}