Select display language:   ru  en

Differences

This shows you the differences between the selected revision and the current version of the page.

en:base:condition_jobs 2006/11/23 13:30 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 reactions/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**// – a name of a job that will be shown in the list.\\ //**Name**// – a name of a job that will be shown in the list.\\
//**Hook**// – a condition that will trigger the job. It allows to choose a type and section for a checked condition.\\ //**Hook**// – a condition that will trigger the job. It allows to choose a type and section for a checked condition.\\
//**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//.\\ //**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//.\\
-//**Script**// – script that will be run if 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.+//**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.
For example, For example,
-//#!/bin/sh// или //#!/bin/perl//.\\+//#!/bin/sh// or //#!/bin/perl//.\\

Personal Tools