This file is indexed.

/usr/share/icingaweb2/modules/monitoring/application/views/scripts/health/stats.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
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
$rv = $this->runtimeVariables()->create($this->runtimevariables);
$cp = $this->checkPerformance()->create($this->checkperformance);

if (! $this->compact): ?>
<div class="controls">
    <?= $this->tabs ?>
</div>
<?php endif ?>

<div class="content stats grid">
    <div class="boxview">
        <div class="box stats col-1-2">
            <h3><?= $this->unhandledProblems ?> <?= $this->translate('Unhandled Problems:') ?>
                <span class="badge badge-critical"> <?= $this->unhandledProblems ?> </span>
            </h3>
            <table class="avp">
                <tbody>
                <tr>
                    <th> <?= $this->translate('Service Problems:') ?> </th>
                    <td>
                        <span class="badge badge-critical">
                            <?=
                            $this->qlink(
                                $this->unhandledServiceProblems,
                                'monitoring/list/services?service_problem=1&service_handled=0&sort=service_severity',
                                null,
                                array('data-base-target' => '_next')
                            )
                            ?>
                        </span>
                    </td>
                </tr>
                <tr>
                    <th> <?= $this->translate('Host Problems:') ?> </th>
                    <td>
                        <span class="badge badge-critical">
                            <?=
                            $this->qlink(
                                $this->unhandledhostProblems,
                                'monitoring/list/hosts?host_problem=1&host_handled=0',
                                null,
                                array('data-base-target' => '_next')
                            )
                            ?>
                        </span>
                    </td>
                </tr>
                </tbody>
            </table>
            <br>

            <h3 class="tinystatesummary" data-base-target="_next">
                <?php $this->stats = $hoststats ?>
                <?= $this->render('list/components/hostssummary.phtml') ?>
            </h3>
            <table class="avp">
                <thead>
                <tr>
                    <th><strong><?= $this->translate('Runtime Variables') ?></strong></th>
                    <th><?= $this->translate('Host Checks') ?></th>
                    <th></th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <th> <?= $this->translate('Total') ?> </th>
                    <td> <?= $rv->total_scheduled_hosts ?> </td>
                </tr>
                <tr>
                    <th> <?= $this->translate('Scheduled') ?> </th>
                    <td> <?= $rv->total_scheduled_hosts ?> </td>
                </tr>
                </tbody>
            </table>
            <br>

            <h3 class="tinystatesummary" data-base-target="_next">
                <?php $this->stats = $servicestats ?>
                <?= $this->render('list/components/servicesummary.phtml') ?>
            </h3>
            <table class="avp">
                <thead>
                <tr>
                    <th><strong> <?= $this->translate('Runtime Variables') ?> </strong></th>
                    <th><?= $this->translate('Service Checks') ?></th>
                    <th><?= $this->translate('Per Host') ?></th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                        <th> <?= $this->translate('Total') ?> </th>
                        <td> <?= $rv->total_services ?> </td>
                        <td> <?= sprintf('%.2f', $rv->average_services_per_host) ?> </td>
                        <td></td>
                    </tr>
                    <tr>
                        <th> <?= $this->translate('Scheduled') ?> </th>
                        <td> <?= $rv->total_scheduled_services ?> </td>
                        <td> <?= sprintf('%.2f', $rv->average_scheduled_services_per_host) ?> </td>
                        <td></td>
                    </tr>
                </tbody>
            </table>
            <br>

            <h3><?= $this->translate('Active checks') ?></h3>
            <table class="avp">
                <thead>
                <tr>
                    <th><strong> <?= $this->translate('Check Performance') ?> </strong></th>
                    <th><?= $this->translate('Checks') ?></th>
                    <th><?= $this->translate('Latency') ?></th>
                    <th><?= $this->translate('Execution time') ?></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <th><?= $this->translate('Host Checks') ?></th>
                    <td><?= $cp->host_active_count; ?></td>
                    <td><?= sprintf('%.3f', $cp->host_active_latency_avg) ?>s</td>
                    <td><?= sprintf('%.3f', $cp->host_active_execution_avg) ?>s</td>
                </tr>
                <tr>
                    <th><?= $this->translate('Service Checks') ?></th>
                    <td><?= $cp->service_active_count; ?></td>
                    <td><?= sprintf('%.3f', $cp->service_active_latency_avg) ?>s</td>
                    <td><?= sprintf('%.3f', $cp->service_active_execution_avg) ?>s</td>
                </tr>
                </tbody>
            </table>
            <br>

            <h3><?= $this->translate('Passive checks') ?></h3>
            <table class="avp">
                <thead>
                <tr>
                    <th><strong> <?= $this->translate('Check Performance') ?> </strong></th>
                    <th><?= $this->translate('Passive Checks') ?></th>
                    <th></th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <th><?= $this->translate('Host Checks') ?></th>
                    <td><?= $cp->host_passive_count ?></td>
                </tr>
                <tr>
                    <th><?= $this->translate('Service Checks') ?></th>
                    <td><?= $cp->service_passive_count ?></td>
                </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>