1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
2 $notes_url_target = config
::get('nagdefault.notes_url_target', '*');
3 $action_url_target = config
::get('nagdefault.action_url_target', '*');
8 if (isset($page_links)) {
9 foreach ($page_links as $label => $link) {
11 <li
><?php
echo html
::anchor($link, $label) ?
></li
>
18 <div
class="clear"> </div
>
20 <?php
if (!empty($action_url)) { ?
>
21 <a href
="<?php echo $action_url ?>" style
="border: 0px" target
="<?php echo $action_url_target ?>">
22 <?php
echo html
::image($this->add_path('icons/16x16/host-actions.png'),array('alt' => _('Perform extra host actions'),'title' => _('Perform extra host actions')))?
></a
>
24 <strong
><?php
echo _('Extra actions') ?
></strong
>
28 <?php
if (!empty($notes_url)) { ?
>
29 <a href
="<?php echo $notes_url ?>" style
="border: 0px" target
="<?php echo $notes_url_target ?>">
30 <?php
echo html
::image($this->add_path('icons/16x16/host-notes.png'),array('alt' => _('View extra host notes'),'title' => _('View extra host notes')))?
></a
>
32 <strong
><?php
echo _('Extra notes') ?
></strong
>
35 if (!empty($notes)) {?
>
36 <br
/><strong
><?php
echo _('Notes') ?
></strong
>: <?php
echo $notes;
40 $group_attribute = strtolower($grouptype) . '_name';
46 <caption
><?php
echo ucfirst($label_grouptype) ?
> <?php
echo _('Commands').' '._('for').': '.html
::specialchars($group_alias).' ('.$groupname.')'; ?
>
47 <?php
if (nacoma
::link()===true)
48 echo nacoma
::link('configuration/configure/'.$grouptype.'/'.urlencode($groupname), 'icons/16x16/nacoma.png', sprintf(_('Configure this %sgroup'), $grouptype));?
>
51 <td
class="status icon">
52 <?php
echo html
::image($this->add_path('icons/16x16/scheduled-downtime.png'), array('alt' => _('Schedule downtime for all hosts in this').' '.$label_grouptype, 'title' => _('Schedule downtime for all hosts in this').' '.$label_grouptype)); ?
>
55 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_schedule_downtime_hosts.'&'.$group_attribute.'='.$groupname, _('Schedule downtime for all hosts in this')." ".$label_grouptype); ?
>
59 <td
class="status icon">
60 <?php
echo html
::image($this->add_path('icons/16x16/scheduled-downtime.png'), array('alt' => _('Schedule downtime for all services in this').' '.$label_grouptype, 'title' => _('Schedule downtime for all services in this').' '.$label_grouptype)); ?
>
63 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_schedule_downtime_services.'&'.$group_attribute.'='.$groupname, _('Schedule downtime for all services in this')." ".$label_grouptype); ?
>
67 <td
class="status icon">
68 <?php
echo html
::image($this->add_path('icons/16x16/notify.png'), array('alt' => _('Enable').' '._('notifications for all hosts in this').' '.$label_grouptype, 'title' => _('Enable').' '._('notifications for all hosts in this').' '.$label_grouptype)); ?
>
71 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_enable_notifications_hosts.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('notifications for all hosts in this')." ".$label_grouptype); ?
>
75 <td
class="status icon">
76 <?php
echo html
::image($this->add_path('icons/16x16/notify-disabled.png'), array('alt' => _('Disable').' '._('notifications for all hosts in this').' '.$label_grouptype, 'title' => _('Disable').' '._('notifications for all hosts in this').' '.$label_grouptype)); ?
>
79 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_disable_notifications_hosts.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('notifications for all hosts in this')." ".$label_grouptype); ?
>
83 <td
class="status icon">
84 <?php
echo html
::image($this->add_path('icons/16x16/notify.png'), array('alt' => _('Enable').' '._('notifications for all services in this').' '.$label_grouptype, 'title' => _('Enable').' '._('notifications for all services in this').' '.$label_grouptype)); ?
>
87 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_enable_notifications_services.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('notifications for all services in this')." ".$label_grouptype); ?
>
91 <td
class="status icon">
92 <?php
echo html
::image($this->add_path('icons/16x16/notify-disabled.png'), array('alt' => _('Disable').' '._('notifications for all services in this').' '.$label_grouptype, 'title' => _('Disable').' '._('notifications for all services in this').' '.$label_grouptype)); ?
>
95 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_disable_notifications_services.'&'.$group_attribute.'='.$groupname, _('Disable').' '._('notifications for all services in this')." ".$label_grouptype); ?
>
99 <td
class="status icon">
100 <?php
echo html
::image($this->add_path('icons/16x16/enabled.png'), array('alt' => _('Enable').' '._('active checks of all hosts in this').' '.$label_grouptype, 'title' => _('Enable').' '._('active checks of all hosts in this').' '.$label_grouptype)); ?
>
103 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_enable_active_host_checks.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('active checks of all hosts in this')." ".$label_grouptype); ?
>
107 <td
class="status icon">
108 <?php
echo html
::image($this->add_path('icons/16x16/disabled.png'), array('alt' => _('Disable').' '._('active checks of all hosts in this').' '.$label_grouptype, 'title' => _('Disable').' '._('active checks of all hosts in this').' '.$label_grouptype)); ?
>
111 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_disable_active_host_checks.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('active checks of all hosts in this')." ".$label_grouptype); ?
>
115 <td
class="status icon">
116 <?php
echo html
::image($this->add_path('icons/16x16/enabled.png'), array('alt' => _('Enable').' '._('active checks of all services in this').' '.$label_grouptype, 'title' => _('Enable').' '._('active checks of all services in this').' '.$label_grouptype)); ?
>
119 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_enable_active_svc_checks.'&'.$group_attribute.'='.$groupname, _('Enable')." "._('active checks of all services in this')." ".$label_grouptype); ?
>
123 <td
class="status icon">
124 <?php
echo html
::image($this->add_path('icons/16x16/disabled.png'), array('alt' => _('Disable').' '._('active checks of all services in this').' '.$label_grouptype, 'title' => _('Disable').' '._('active checks of all services in this').' '.$label_grouptype)); ?
>
127 <?php
echo html
::anchor('command/submit?cmd_typ='.$cmd_disable_active_svc_checks.'&'.$group_attribute.'='.$groupname, _('Disable')." "._('active checks of all services in this')." ".$label_grouptype); ?
>