Пример #1
0
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 />

        <?php 
if ($week_sleep_status_agg[1] > 0 || $week_sleep_status_agg[0] > 0) {
    ?>
            <h3>Sleep State Summary</h3>
            <p>Breakdown of sleep states person was in during notifications this week</p>
            <?php 
    echo renderSleepStatus($week_sleep_status_agg, $week_status_agg_total, $week_mtts_total, $week_rtts_count, $week_ntts_count);
}
?>
        <br />

        <h3>Top Notifying Hosts</h3>
        <p>Hosts that recieved the most notifications during this week</p>
        <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
            <th>Hostname</th><th>Count</th>
            </tr>
        </thead>
        <tbody> 
        <?php 
echo renderTopNTableBody($week_top_host_agg, 10, 'host');
Пример #2
0
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 />

        <?php 
if ($year_sleep_status_agg[1] > 0 || $year_sleep_status_agg[0] > 0) {
    ?>
            <h3>Sleep State Summary</h3>
            <p>Breakdown of sleep states people were in during notifications this year</p>
            <?php 
    echo renderSleepStatus($year_sleep_status_agg, $year_status_agg_total, $year_mtts_total, $year_rtts_count, $year_ntts_count);
}
?>
        <br />

        <h3>Top Notifying Hosts</h3>
        <p>Hosts that received the most notifications during this year</p>
        <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
            <th>Hostname</th><th>Count</th>
            </tr>
        </thead>
        <tbody> 
        <?php 
echo renderTopNTableBody($year_top_host_agg, 10, 'host');