This file is indexed.

/usr/share/icingaweb2/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.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
<td class="state-col state-<?= $stateName; ?><?= $downtime->is_in_effect ? ' handled' : ''; ?>">
  <?php if ($downtime->start <= time() && ! $downtime->is_in_effect): ?>
      <div class="state-label"><?= $this->translate('ENDS', 'Downtime status'); ?></div>
      <div class="state-meta"><?= $this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end, $this->compact) ?></div>
  <?php else: ?>
      <div class="state-label"><?= $downtime->is_in_effect ? $this->translate('EXPIRES', 'Downtime status') : $this->translate('STARTS', 'Downtime status'); ?></div>
      <div class="state-meta"><?= $this->timeUntil($downtime->is_in_effect ? $downtime->end : $downtime->start, $this->compact) ?></div>
  <?php endif; ?>
</td>
<td>
  <div class="comment-header">
    <?php if ($isService): ?>
        <?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
            $downtime->host_display_name . ': ' . $downtime->service_display_name,
            'monitoring/service/show',
            array(
                'host'    => $downtime->host_name,
                'service' => $downtime->service_description
            ),
            array(
                'title' => sprintf(
                    $this->translate('Show detailed information for this downtime scheduled for service %s on host %s'),
                    $downtime->service_display_name,
                    $downtime->host_display_name
                )
            )
        ); ?>
    <?php else: ?>
        <?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
            $downtime->host_display_name,
            'monitoring/host/show',
            array('host' => $downtime->host_name, 'downtime_id' => $downtime->id),
            array(
                'title' => sprintf(
                    $this->translate('Show detailed information for this downtime scheduled for host %s'),
                    $downtime->host_display_name
                )
            )
        ); ?>
    <?php endif ?>
    <span class="comment-meta">
        <?= $this->translate('by') ?>
        <?= $this->escape($downtime->author_name) ?>
        <span class="meta-icons">
          <?php if ($downtime->is_flexible): ?>
              <?= $this->icon('magic', $this->translate('This downtime is flexible')); ?>
          <?php endif ?>

          <?php if ($downtime->is_in_effect): ?>
              <?= $this->icon('plug', $this->translate('This downtime is in effect')); ?>
          <?php endif ?>

          <?php if (isset($delDowntimeForm)): // Form is unset if the current user lacks the respective permission ?>
              <?php
              $deleteButton = clone $delDowntimeForm;
              /** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
              $deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
              $deleteButton->populate(
                  array(
                      'downtime_id'         => $downtime->id,
                      'downtime_is_service' => isset($downtime->service_description)
                  )
              );
              echo $deleteButton;
              ?>
          <?php endif ?>
        </span>
    </span>
  </div>
  <p class="comment-text">
    <?= $this->escape($downtime->comment) ?>
  </p>
</td>