Ejemplo n.º 1
0
        if ($type == "hostgroup") {
            $escalation->setHostgroup($tempSource->getId());
        } else {
            if ($type == "hosttemplate") {
                $escalation->setHostTemplate($tempSource->getId());
            } else {
                if ($type == "service") {
                    $escalation->setService($tempSource->getId());
                } else {
                    if ($type == "servicetemplate") {
                        $escalation->setServiceTemplate($tempSource->getId());
                    }
                }
            }
        }
        $escalation->setDescription(trim($_POST['escalation_description']));
        $escalation->save();
        header("Location: escalation.php?id=" . $escalation->getId());
        die;
    }
}
if ($type == "service") {
    $textTitle = $tempSource->getNagiosHost()->getName() . " : " . $tempSource->getDescription();
} else {
    $textTitle = $tempSource->getName();
}
print_header("Add Escalation To " . $title . " " . $textTitle);
print_window_header("Add A Escalation", "100%");
?>
<a href="<?php 
echo $link;