diff --git a/modules/monitoring/application/views/helpers/MonitoringCommands.php b/modules/monitoring/application/views/helpers/MonitoringCommands.php index 6a1a9b57b..d035fbf4c 100644 --- a/modules/monitoring/application/views/helpers/MonitoringCommands.php +++ b/modules/monitoring/application/views/helpers/MonitoringCommands.php @@ -26,7 +26,7 @@ use Icinga\Monitoring\Command\Meta; /** - * Class MonitoringCommands + * Display a bunch of commands * * Helper which produces a list of command buttons * depending on object states @@ -34,8 +34,10 @@ use Icinga\Monitoring\Command\Meta; class Zend_View_Helper_MonitoringCommands extends Zend_View_Helper_Abstract { /** + * Helper function called externally + * * @param stdClass $object host or service object or something other - * @param string $type small or full + * @param string $type small or full * @return string html output */ public function monitoringCommands(\stdClass $object, $type) diff --git a/modules/monitoring/application/views/helpers/MonitoringFlags.php b/modules/monitoring/application/views/helpers/MonitoringFlags.php index 13064e568..8edacd439 100644 --- a/modules/monitoring/application/views/helpers/MonitoringFlags.php +++ b/modules/monitoring/application/views/helpers/MonitoringFlags.php @@ -1,10 +1,29 @@ + * @author Icinga Development Team + */ // {{{ICINGA_LICENSE_HEADER}}} /** - * Class Zend_View_Helper_MonitoringFlags - * * Rendering helper for flags depending on objects */ class Zend_View_Helper_MonitoringFlags extends Zend_View_Helper_Abstract @@ -15,10 +34,10 @@ class Zend_View_Helper_MonitoringFlags extends Zend_View_Helper_Abstract */ private static $keys = array( 'passive_checks_enabled' => 'Passive checks', - 'active_checks_enabled' => 'Active checks', - 'obsess_over_host' => 'Obsessing', - 'notifications_enabled' => 'Notifications', - 'event_handler_enabled' => 'Event handler', + 'active_checks_enabled' => 'Active checks', + 'obsess_over_host' => 'Obsessing', + 'notifications_enabled' => 'Notifications', + 'event_handler_enabled' => 'Event handler', 'flap_detection_enabled' => 'Flap detection', ); diff --git a/modules/monitoring/application/views/helpers/MonitoringProperties.php b/modules/monitoring/application/views/helpers/MonitoringProperties.php index 13c7a52c5..60ef97828 100644 --- a/modules/monitoring/application/views/helpers/MonitoringProperties.php +++ b/modules/monitoring/application/views/helpers/MonitoringProperties.php @@ -1,9 +1,30 @@ + * @author Icinga Development Team + */ // {{{ICINGA_LICENSE_HEADER}}} /** - * Class Zend_View_Helper_MonitoringProperties + * Helper to display monitoring properties */ class Zend_View_Helper_MonitoringProperties extends Zend_View_Helper_Abstract { @@ -45,16 +66,16 @@ class Zend_View_Helper_MonitoringProperties extends Zend_View_Helper_Abstract * @var array */ private static $keys = array( - 'buildAttempt' => 'Current attempt', - 'last_check' => 'Last check time', - 'buildCheckType' => 'Check type', - 'buildLatency' => 'Check latency / duration', - 'buildNextCheck' => 'Next scheduled active check', - 'buildLastStateChange' => 'Last state change', - 'buildLastNotification' => 'Last notification', - 'buildFlapping' => 'Is this %s flapping?', + 'buildAttempt' => 'Current attempt', + 'last_check' => 'Last check time', + 'buildCheckType' => 'Check type', + 'buildLatency' => 'Check latency / duration', + 'buildNextCheck' => 'Next scheduled active check', + 'buildLastStateChange' => 'Last state change', + 'buildLastNotification' => 'Last notification', + 'buildFlapping' => 'Is this %s flapping?', 'buildScheduledDowntime' => 'In scheduled downtime?', - 'status_update_time' => 'Last update' + 'status_update_time' => 'Last update' ); /** diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml index 2273fcaee..9bd3ceaff 100644 --- a/modules/monitoring/application/views/scripts/show/components/comments.phtml +++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml @@ -1,5 +1,5 @@ -comments)) { ?> +comments)): ?> comments as $comment) { @@ -28,4 +28,4 @@ foreach ($this->comments as $comment) {
', $list) ?>
- \ No newline at end of file + \ No newline at end of file diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index cb2effe0b..a396ed2d7 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -1,4 +1,4 @@ -downtimes)) { ?> +downtimes)): ?> downtimes as $downtime) { @@ -40,4 +40,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/modules/monitoring/application/views/scripts/show/components/flags.phtml b/modules/monitoring/application/views/scripts/show/components/flags.phtml index 435cee465..9f83501cd 100644 --- a/modules/monitoring/application/views/scripts/show/components/flags.phtml +++ b/modules/monitoring/application/views/scripts/show/components/flags.phtml @@ -10,16 +10,16 @@ $flags = $this->monitoringFlags($object); ?> - $value) { ?> + $value): ?> - +
- + ENABLED - + DISABLED - +
\ No newline at end of file diff --git a/modules/monitoring/application/views/scripts/show/components/properties.phtml b/modules/monitoring/application/views/scripts/show/components/properties.phtml index 8d43736ad..51b7a0612 100644 --- a/modules/monitoring/application/views/scripts/show/components/properties.phtml +++ b/modules/monitoring/application/views/scripts/show/components/properties.phtml @@ -10,10 +10,10 @@ if (isset($this->service)) { $properties = $this->monitoringProperties($object); ?> - $value) { ?> + $value): ?> - +
\ No newline at end of file diff --git a/modules/monitoring/application/views/scripts/show/header.phtml b/modules/monitoring/application/views/scripts/show/header.phtml index a9d29fabe..324902105 100644 --- a/modules/monitoring/application/views/scripts/show/header.phtml +++ b/modules/monitoring/application/views/scripts/show/header.phtml @@ -17,7 +17,7 @@ if (!$this->compact) { } ?>
- +
monitoringCommands( @@ -26,35 +26,35 @@ if (!$this->compact) { ); ?>
- + @@ -91,9 +91,9 @@ if (!$this->compact) { diff --git a/modules/monitoring/application/views/scripts/show/host.phtml b/modules/monitoring/application/views/scripts/show/host.phtml index cc41be532..40ed03abc 100644 --- a/modules/monitoring/application/views/scripts/show/host.phtml +++ b/modules/monitoring/application/views/scripts/show/host.phtml @@ -52,10 +52,10 @@
Groups and Contacts
- + Hostgroups: - + render('show/components/contacts.phtml') ?> diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php index 58097ce49..75f8f820d 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/DowntimeQuery.php @@ -26,7 +26,7 @@ namespace Icinga\Monitoring\Backend\Ido\Query; /** - * Class DowntimeQuery + * Handling downtime queries */ class DowntimeQuery extends AbstractQuery { @@ -36,25 +36,25 @@ class DowntimeQuery extends AbstractQuery */ protected $columnMap = array( 'downtime' => array( - 'downtime_type' => 'sd.downtime_type', - 'downtime_author_name' => 'sd.author_name', - 'downtime_comment_data' => 'sd.comment_data', - 'downtime_is_fixed' => 'sd.is_fixed', - 'downtime_duration' => 'sd.duration', - 'downtime_scheduled_start_time' => 'sd.scheduled_start_time', - 'downtime_scheduled_end_time' => 'sd.scheduled_end_time', - 'downtime_was_started' => 'sd.was_started', - 'downtime_actual_start_time' => 'sd.actual_start_time', + 'downtime_type' => 'sd.downtime_type', + 'downtime_author_name' => 'sd.author_name', + 'downtime_comment_data' => 'sd.comment_data', + 'downtime_is_fixed' => 'sd.is_fixed', + 'downtime_duration' => 'sd.duration', + 'downtime_scheduled_start_time' => 'sd.scheduled_start_time', + 'downtime_scheduled_end_time' => 'sd.scheduled_end_time', + 'downtime_was_started' => 'sd.was_started', + 'downtime_actual_start_time' => 'sd.actual_start_time', 'downtime_actual_start_time_usec' => 'sd.actual_start_time_usec', - 'downtime_is_in_effect' => 'sd.is_in_effect', - 'downtime_trigger_time' => 'sd.trigger_time', - 'downtime_internal_downtime_id' => 'sd.internal_downtime_id' + 'downtime_is_in_effect' => 'sd.is_in_effect', + 'downtime_trigger_time' => 'sd.trigger_time', + 'downtime_internal_downtime_id' => 'sd.internal_downtime_id' ), 'hosts' => array( 'host_name' => 'ho.name1', ), 'services' => array( - 'service_host_name' => 'so.name1', + 'service_host_name' => 'so.name1', 'service_description' => 'so.name2', ) ); diff --git a/modules/monitoring/library/Monitoring/Command/Meta.php b/modules/monitoring/library/Monitoring/Command/Meta.php index 3648fa703..50bdd03b4 100644 --- a/modules/monitoring/library/Monitoring/Command/Meta.php +++ b/modules/monitoring/library/Monitoring/Command/Meta.php @@ -29,8 +29,6 @@ use Icinga\Authentication\User; use Icinga\Exception\ProgrammingError; /** - * Class Meta - * * Deals with objects and available commands which can be used on the object */ class Meta diff --git a/modules/monitoring/library/Monitoring/View/DowntimeView.php b/modules/monitoring/library/Monitoring/View/DowntimeView.php index 4884db1f7..4504c6caf 100644 --- a/modules/monitoring/library/Monitoring/View/DowntimeView.php +++ b/modules/monitoring/library/Monitoring/View/DowntimeView.php @@ -25,7 +25,7 @@ namespace Icinga\Monitoring\View; /** - * Class DowntimeView + * View for downtimes */ class DowntimeView extends MonitoringView {
- host->host_icon_image) : ?> + host->host_icon_image): ?>
Host image
escape($this->host->host_name); ?> - host->host_address && $this->host->host_address !== $this->host->host_name) { ?> + host->host_address && $this->host->host_address !== $this->host->host_name): ?> (escape($this->host->host_address); ?>) - + - host->host_alias) && $this->host->host_alias !== $this->host->host_name) { ?> + host->host_alias) && $this->host->host_alias !== $this->host->host_name): ?>
(host->host_alias; ?>) - +
util()->getHostStateName($this->host->host_state); ?> since timeSince($this->host->host_last_state_change); ?> - host->host_acknowledged === '1') { ?> + host->host_acknowledged === '1'): ?> (Has been acknowledged) - +
util()->getServiceStateName($this->service->service_state); ?> since timeSince($this->service->service_last_state_change); ?> - service->service_acknowledged === '1') { ?> + service->service_acknowledged === '1'): ?> (Has been acknowledged) - +