Beispiel #1
0
    ?>
 <br />
        IP: <?php 
    echo $host->ip;
    ?>
 <br />
    </p>

    <h3>Trigger details</h3>
    <p>
        Description: <?php 
    echo cleanTriggerDescription($trigger["description"]);
    ?>
 <br />
        Comment: <?php 
    echo cleanTriggerDescription($trigger["comments"]);
    ?>
 <br />
    </p>

    <?php 
    if (is_array($events) && count($events) > 0) {
        $first_event = $events[0];
        $acknowledge_event = "";
        if ($first_event->value == 1 && $first_event->acknowledged != 1) {
            // This event is in the "problem" state, and it's the last event: meaning the trigger is still in problem
            // We can acknowledge that
            ?>
                <h3>Acknowledge event</h3>
                <form action="trigger_ack.php" method="post" class="well">
                    <input type="hidden" name="eventid" value="<?php 
Beispiel #2
0
    foreach ($arrSortedTriggers as $hostid => $arrTriggers) {
        ?>
                <li class="nav-header">
                    <a href="host.php?hostid=<?php 
        echo $hostid;
        ?>
">
                        <?php 
        echo $arrTriggers["host"];
        ?>
                    </a>
                </li>

                <?php 
        foreach ($arrTriggers["triggers"] as $arrTrigger) {
            $trigger_description = cleanTriggerDescription($arrTrigger["description"]);
            ?>
                    <li class="severity_<?php 
            echo $arrTrigger["priority"];
            ?>
">
                        <a href="trigger_info.php?triggerid=<?php 
            echo $arrTrigger["triggerid"];
            ?>
&hostid=<?php 
            echo $hostid;
            ?>
">
                            <i class="icon-arrow-right"></i> <?php 
            echo $trigger_description;
            ?>