switch ($action) { case 'ack': RRD_anomaly_global::ack($conn, $what); break; case 'del': RRD_anomaly_global::delete($conn, $what); break; } } else { $ip = ereg_replace("_", ".", $ip); switch ($action) { case 'ack': RRD_anomaly::ack($conn, $ip, $what); break; case 'del': RRD_anomaly::delete($conn, $ip, $what); break; } } } $db->close($conn); ?> <p> <?php echo gettext("Successfully Acked/Deleted"); ?> </p> <script>document.location.href="anomalies.php"</script> </body> </html>
echo gettext("Over threshold (absolute)"); ?> </th> <th align="center"> <?php echo gettext("Ack"); ?> </th> <th align="center"> <?php echo gettext("Delete"); ?> </th> </tr> <?php $perl_interval = 4; // Host perl is being executed every 15 minutes if ($event_list = RRD_anomaly::get_list($conn, $where_clause, "order by\nanomaly_time desc", "0", "10")) { foreach ($event_list as $event) { $ip = $event->get_ip(); ?> <tr> <th><div id="<?php echo $ip . ';' . Host::ip2hostname($conn, $ip); ?> " class="HostReportMenu"> <A HREF="<?php echo Sensor::get_sensor_link($conn, $ip) . "/{$ip}.html"; ?> " target="_blank" title="<?php echo $ip; ?> ">