monitoring/commands: Fix object command forms code compliance
refs #6593
This commit is contained in:
parent
e5e806a3a1
commit
442f956945
|
@ -39,8 +39,8 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'value' => mt(
|
'value' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'This command is used to acknowledge host or service problems. When a problem is acknowledged,'
|
'This command is used to acknowledge host or service problems. When a problem is acknowledged,'
|
||||||
. ' future notifications about problems are temporarily disabled until the host or service'
|
. ' future notifications about problems are temporarily disabled until the host or service'
|
||||||
. ' recovers.'
|
. ' recovers.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -53,8 +53,8 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you work with other administrators, you may find it useful to share information about the'
|
'If you work with other administrators, you may find it useful to share information about the'
|
||||||
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
||||||
. ' what you are doing.'
|
. ' what you are doing.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -66,7 +66,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you would like the comment to remain even when the acknowledgement is removed, check this'
|
'If you would like the comment to remain even when the acknowledgement is removed, check this'
|
||||||
. ' option.'
|
. ' option.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -92,7 +92,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'Enter the expire date and time for this acknowledgement here. Icinga will delete the'
|
'Enter the expire date and time for this acknowledgement here. Icinga will delete the'
|
||||||
. ' acknowledgement after this time expired.'
|
. ' acknowledgement after this time expired.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -118,7 +118,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you want the acknowledgement to disable notifications until the host or service recovers,'
|
'If you want the acknowledgement to disable notifications until the host or service recovers,'
|
||||||
. 'check this option.'
|
. 'check this option.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -131,7 +131,7 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you do not want an acknowledgement notification to be sent out to the appropriate contacts,'
|
'If you do not want an acknowledgement notification to be sent out to the appropriate contacts,'
|
||||||
. 'uncheck this option.'
|
. 'uncheck this option.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -48,8 +48,8 @@ class AddCommentCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you work with other administrators, you may find it useful to share information about the'
|
'If you work with other administrators, you may find it useful to share information about the'
|
||||||
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
||||||
. ' what you are doing.'
|
. ' what you are doing.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -62,7 +62,7 @@ class AddCommentCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you uncheck this option, the comment will automatically be deleted the next time Icinga is'
|
'If you uncheck this option, the comment will automatically be deleted the next time Icinga is'
|
||||||
. ' restarted.'
|
. ' restarted.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -34,15 +34,10 @@ class CheckNowCommandForm extends ObjectsCommandForm
|
||||||
'note',
|
'note',
|
||||||
'icon',
|
'icon',
|
||||||
array(
|
array(
|
||||||
'decorators' => array(
|
'decorators' => array(array(
|
||||||
array(
|
'HtmlTag',
|
||||||
'HtmlTag',
|
array('tag' => 'img', 'src' => $this->getView()->href('img/icons/refresh_petrol.png'))
|
||||||
array(
|
))
|
||||||
'tag' => 'img',
|
|
||||||
'src' => $this->getView()->href('img/icons/refresh_petrol.png'),
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
@ -51,9 +46,7 @@ class CheckNowCommandForm extends ObjectsCommandForm
|
||||||
array(
|
array(
|
||||||
'ignore' => true,
|
'ignore' => true,
|
||||||
'label' => mt('monitoring', 'Check Now'),
|
'label' => mt('monitoring', 'Check Now'),
|
||||||
'decorators' => array(
|
'decorators' => array('ViewHelper')
|
||||||
'ViewHelper'
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
|
@ -41,7 +41,7 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm
|
||||||
'value' => mt(
|
'value' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'This command is used to schedule the next check of hosts or services. Icinga will re-queue the'
|
'This command is used to schedule the next check of hosts or services. Icinga will re-queue the'
|
||||||
. ' hosts or services to be checked at the time you specify.'
|
. ' hosts or services to be checked at the time you specify.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -62,7 +62,7 @@ class ScheduleServiceCheckCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you select this option, Icinga will force a check regardless of both what time the'
|
'If you select this option, Icinga will force a check regardless of both what time the'
|
||||||
. 'scheduled check occurs and whether or not checks are enabled.'
|
. 'scheduled check occurs and whether or not checks are enabled.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -53,10 +53,10 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm
|
||||||
'value' => mt(
|
'value' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'This command is used to schedule host and service downtimes. During the specified downtime,'
|
'This command is used to schedule host and service downtimes. During the specified downtime,'
|
||||||
. ' Icinga will not send notifications out about the hosts and services. When the scheduled'
|
. ' Icinga will not send notifications out about the hosts and services. When the scheduled'
|
||||||
. ' downtime expires, Icinga will send out notifications for the hosts and services as it'
|
. ' downtime expires, Icinga will send out notifications for the hosts and services as it'
|
||||||
. ' normally would. Scheduled downtimes are preserved across program shutdowns and'
|
. ' normally would. Scheduled downtimes are preserved across program shutdowns and'
|
||||||
. ' restarts.'
|
. ' restarts.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -69,8 +69,8 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you work with other administrators, you may find it useful to share information about the'
|
'If you work with other administrators, you may find it useful to share information about the'
|
||||||
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
. ' the host or service that is having problems. Make sure you enter a brief description of'
|
||||||
. ' what you are doing.'
|
. ' what you are doing.'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
@ -102,9 +102,9 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'If you select the fixed option, the downtime will be in effect between the start and end'
|
'If you select the fixed option, the downtime will be in effect between the start and end'
|
||||||
. ' times you specify whereas a flexible downtime starts when the host or service enters a'
|
. ' times you specify whereas a flexible downtime starts when the host or service enters a'
|
||||||
. ' problem state sometime between the start and end times you specified and lasts as long'
|
. ' problem state sometime between the start and end times you specified and lasts as long'
|
||||||
. ' as the duration time you enter. The duration fields do not apply for fixed downtimes.'
|
. ' as the duration time you enter. The duration fields do not apply for fixed downtimes.'
|
||||||
),
|
),
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
self::FIXED => mt('monitoring', 'Fixed'),
|
self::FIXED => mt('monitoring', 'Fixed'),
|
||||||
|
@ -159,7 +159,7 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm
|
||||||
'description' => mt(
|
'description' => mt(
|
||||||
'monitoring',
|
'monitoring',
|
||||||
'Enter here the duration of the downtime. The downtime will be automatically deleted after this'
|
'Enter here the duration of the downtime. The downtime will be automatically deleted after this'
|
||||||
. ' time expired.'
|
. ' time expired.'
|
||||||
),
|
),
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
'FormElements',
|
'FormElements',
|
||||||
|
|
Loading…
Reference in New Issue