Example #1
0
    <div class="span12">
        <h2>Week Stats <small> for week <?php 
echo $pretty_start;
?>
 - <?php 
echo $pretty_end;
?>
</small></h2>
        <p class='lead'><?php 
echo $total_notifications;
?>
 notifications received this week </p>
        <h3>Alert Status Distribution</h3>
        <p>Breakdown of the type of notifications recieved during the week</p>
        <?php 
echo renderStatusProgressBar($week_status_agg, $week_status_agg_total);
?>
        <br />

        <h3>Tag Status Summary</h3>
        <p>Breakdown of the tags applied to the notifications recieved during the week</p>
        <?php 
echo renderTagTable($week_tag_agg, $week_tag_agg_total, $nagios_alert_tags);
?>

        <p>Breakdown of the tags applied (normalised)</p>
        <?php 
echo renderTagTable($week_tag_agg_normalised, $week_tag_agg_total, $nagios_tag_categories);
?>
        <br />
Example #2
0
    <div class="span12">
    <?php 
if ($no_search) {
    echo insertNotify("error", "No search term was entered, please enter something to search for. ");
    echo insertNotify("info", "<b>Tips:</b> You can either enter a phrase for a best effort search of weekly reports and on call data, or \n            specific host/service alerts. Click the search box for more information");
} else {
    if ($html) {
        if (!$everything) {
            echo "<p class='lead'>" . count($results) . " results total</p>";
        }
        echo $html;
        // Stats for on call items
        if ($context == 'service' || $context == 'host') {
            echo "<h3>Stats for these search results</h3>";
            $stats_html = "<h4>Alert Status Distribution</h4>";
            $stats_html .= renderStatusProgressBar($status_agg, $status_agg_total);
            $stats_html .= "<br />";
            $stats_html .= "<h4>Tag Status Summary</h4><p>Breakdown of the tags applied to the notifications in this search</p>";
            $stats_html .= renderTagTable($tag_agg, $tag_agg_total, $nagios_alert_tags);
            $stats_html .= "</table><p>Breakdown of the tags applied (normalised)</p>";
            $stats_html .= renderTagTable($tag_agg_normalised, $tag_agg_total, $nagios_tag_categories);
            $stats_html .= "</table><br />";
            echo $stats_html;
            ?>

                <h3>Notification Time Map</h3>
                <p>Grids read from top to bottom through hours, the darker the more alerts were recieved <small>(Hover over the blocks for a count)</small></p>
                <div id="cal-heatmap"></div>
                <script type="text/javascript">
                var time_data = <?php 
            echo json_encode($time_counts);
Example #3
0
 weeks of data (average of <?php 
echo $week_avg;
?>
 per week)<br>
            Most pages in one week: <?php 
echo $year_week_most_pages;
?>
<br>
            Fewest pages in one week: <?php 
echo $year_week_fewest_pages;
?>
</p>
        <h3>Alert Status Distribution</h3>
        <p>Breakdown of the type of notifications received during the last year</p>
        <?php 
echo renderStatusProgressBar($year_status_agg, $year_status_agg_total);
?>
        <br />

        <h3>Tag Status Summary</h3>
        <p>Breakdown of the tags applied to the notifications received during the last year</p>
        <?php 
echo renderTagTable($year_tag_agg, $year_tag_agg_total, $nagios_alert_tags);
?>

        <p>Breakdown of the tags applied (normalised)</p>
        <?php 
echo renderTagTable($year_tag_agg_normalised, $year_tag_agg_total, $nagios_tag_categories);
?>
        <br />