This file is indexed.

/usr/share/icingaweb2/modules/monitoring/application/views/scripts/alertsummary/index.phtml is in icingaweb2-module-monitoring 2.1.0-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php if (! $this->compact): ?>
<div class="controls">
    <?= $this->tabs; ?>
    <div style="float: right;" class="dontprint">
        <?= $intervalBox; ?>
    </div>
    <?= $this->limiter; ?>
</div>
<?php endif ?>
<div class="content alertsummary">
    <!-- <h1><?= $this->translate('Alert summary'); ?></h1> -->

    <div class="hbox">
        <div class="hbox-item">
            <h2><?= $this->translate('Notifications and Problems'); ?></h2>
            <div style="width: 400px; height: 400px;">
                <?= $defectChart->render(); ?>
            </div>
        </div>

        <div class="hbox-item">
            <h2><?= $this->translate('Time to Reaction (Ack, Recover)'); ?></h2>
            <div style="width: 400px; height: 400px;">
                <?= $healingChart->render(); ?>
            </div>
        </div>
    </div>

    <h2><?= $this->translate('Trend'); ?></h2>

    <div class="alertsummary-flex-container">
        <div class="alertsummary-flex">
            <?= $this->translate('Average') ?>
            <strong><?= $this->perf->avg; ?></strong>
            <?= $this->translate('notifications per hour'); ?>,
            <strong><?= $this->perf->last; ?></strong>
            <?= $this->translate('in the last hour'); ?>.

            <?= $this->translate('Trend for the last 24h'); ?>
            (<?= $this->trend->percent; ?>%
            <strong><?= $this->translate($this->trend->trend); ?></strong>)

            <span>
                <?php if ($this->trend->trend === 'up'): ?>
                    <?= $this->icon('up-open'); ?>
                <?php elseif ($this->trend->trend === 'unchanged'): ?>
                    <?= $this->icon('right-open'); ?>
                <?php else: ?>
                    <?= $this->icon('down-open'); ?>
                <?php endif; ?>
            </span>
        </div>
    </div>

    <?php if ($this->recentAlerts): ?>
        <h1><?= $this->translate('Top 5 Recent Alerts'); ?></h1>

        <div class="alertsummary-flex-container">
            <div class="alertsummary-flex">
                <?= $this->partial('list/notifications.phtml', array(
                    'notifications'     => $this->recentAlerts,
                    'compact'           => true,
                    'notificationsUrl'  => $recentAlertsUrl
                )); ?>
            </div>
        </div>
    <?php endif; ?>

    <h1><?= $this->translate('History'); ?></h1>
    <div class="alertsummary-flex-container">
        <div class="alertsummary-flex">
            <?= $this->partial('list/notifications.phtml', array(
                'notifications'     => $this->notifications,
                'compact'           => true,
                'notificationsUrl'  => $notificationsUrl
            )); ?>
        </div>
    </div>
</div>