Cacti has imported the following items: ";
while (list($type, $type_array) = each($_SESSION["import_debug_info"])) {
print "" . $hash_type_names[$type] . " ";
while (list($index, $vals) = each($type_array)) {
if ($vals["result"] == "success") {
$result_text = "[success]";
}else{
$result_text = "[fail]";
}
if ($vals["type"] == "update") {
$type_text = "[update]";
}else{
$type_text = "[new]";
}
print "$result_text " . $vals["title"] . " $type_text \n";
$dep_text = ""; $there_are_dep_errors = false;
if ((isset($vals["dep"])) && (sizeof($vals["dep"]) > 0)) {
while (list($dep_hash, $dep_status) = each($vals["dep"])) {
if ($dep_status == "met") {
$dep_status_text = "Found Dependency:";
}else{
$dep_status_text = "Unmet Dependency:";
$there_are_dep_errors = true;
}
$dep_text .= " + $dep_status_text " . hash_to_friendly_name($dep_hash, true) . " \n";
}
}
/* only print out dependency details if they contain errors; otherwise it would get too long */
if ($there_are_dep_errors == true) {
print $dep_text;
}
}
}
print " |
";
end_box();
kill_session_var("import_debug_info");
}
start_box("