Trace:
Differences
This shows you the differences between the selected revision and the current version of the page.
en:base:condition_jobs 2006/11/22 15:59 | en:base:condition_jobs 2006/11/30 11:03 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Condition Jobs ===== | ===== Condition Jobs ===== | ||
- | {{en:small_icons:condition_jobs_list.png|}} This section contains a set of jobs that will be executed if alert appears on the server and actions of the panel. For example, a letter sent to the administrator if the traffic increases rapidly, or restart of the server if it is down.\\ | + | {{en:small_icons:condition_jobs_list.png|}} This section contains a set of jobs that will be executed if alert appears on the server or panel actions. For example, a letter sent to the administrator if the traffic increases rapidly, or restart of the service if it is down.\\ |
The conditions are called //hooks// and can be added only by the support. But a user can program any action of the server using scripts.\\ | The conditions are called //hooks// and can be added only by the support. But a user can program any action of the server using scripts.\\ | ||
**ACTIONS AVAILABLE**\\ | **ACTIONS AVAILABLE**\\ | ||
- | //**Add a job**// – adding a new condition job.\\ | + | //**Add a job**// – adding a new condition job.\\ |
- | \\ | + | |
Actions available while adding a job:\\ | Actions available while adding a job:\\ | ||
- | //**Name**// – имя, под которым будет отображаться задание в списке.\\ | + | //**Name**// – a name of a job that will be shown in the list.\\ |
- | //**Hook**// – условие, согласно которому будет запущено выполнение задания. Позволяет выбрать тип и раздел для проверяемого условия.\\ | + | //**Hook**// – a condition that will trigger the job. It allows to choose a type and section for a checked condition.\\ |
- | //**Импорт переменных**// – выбор этого пункта подразумевает использование переменных из Настроек. К примеру, в скрипте можно вызвать переменную //mysql_root_password//, обратившись к ней как к //$DK_SYSTEM_VAR_mysql_root_password//.\\ | + | //**Import of variables**// – this point implies using variables from the setting. For example, in the script you can refer to the variable //mysql_root_password// as //$DK_SYSTEM_VAR_mysql_root_password//.\\ |
- | //**Скрипт**// – скрипт, который будет запущен в случае возникновения hook'а. Скрипт может быть написан на любом из скриптовых языков, таких как //sh//, //perl//, //ruby//, //tcl//. При добавлении скрипта необходимо указать используемый интерпретатор в самой первой строке. Например, | + | //**Script**// – a script that will be run if the hook appeares. The script can be written on any language like //sh//, //perl//, //ruby//, //tcl//. If the script is added the interpreter used should be specified in the first line. |
- | //#!/bin/sh// или //#!/bin/perl//.\\ | + | For example, |
+ | //#!/bin/sh// or //#!/bin/perl//.\\ |