diff --git a/html/includes/hostbox.inc b/html/includes/hostbox.inc index 41ca28b546..08a9eef10f 100644 --- a/html/includes/hostbox.inc +++ b/html/includes/hostbox.inc @@ -9,7 +9,7 @@ $type = strtolower($device['os']); unset($image); - $image = getImage($device[id]); + $image = getImage($device['device_id']); echo("
Device | Service | Status | Changed | Checked | Message | "); - $host_sql = "SELECT D.id, D.hostname FROM devices AS D, services AS S WHERE D.id = S.service_host GROUP BY D.hostname ORDER BY D.hostname"; + $host_sql = "SELECT * FROM devices AS D, services AS S WHERE D.device_id = S.service_host GROUP BY D.hostname ORDER BY D.hostname"; $host_query = mysql_query($host_sql); while($host_data = mysql_fetch_array($host_query)) { - $device_id = $host_data[id]; - $device_hostname = $host_data[hostname]; - $service_query = mysql_query("SELECT * FROM `services` WHERE `service_host` = '$host_data[id]' $where"); + $device_id = $host_data['device_id']; + $device_hostname = $host_data['hostname']; + $service_query = mysql_query("SELECT * FROM `services` WHERE `service_host` = '" . $host_data['device_id'] . "' $where"); while($service = mysql_fetch_array($service_query)) { include("includes/print-service.inc"); $samehost = 1; diff --git a/includes/polling/device-netstats.inc.php b/includes/polling/device-netstats.inc.php index d573a18f52..a20630f3ec 100755 --- a/includes/polling/device-netstats.inc.php +++ b/includes/polling/device-netstats.inc.php @@ -1,5 +1,7 @@ diff --git a/poll-device.php b/poll-device.php index 0c53cc153e..225de831e9 100755 --- a/poll-device.php +++ b/poll-device.php @@ -125,7 +125,7 @@ while ($device = mysql_fetch_array($device_query)) { echo("$ciscomodel"); $newhardware = str_replace("\"", "", $ciscomodel); } - pollDeviceHP(); + include("includes/polling/device-procurve.inc.php"); break; case "Snom": $cmd = "snmpget -O qv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] . " 1.3.6.1.2.1.7526.2.4";