Trace:
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:32 | 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.\\ | ||
Line 13: | Line 13: | ||
//**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. | //**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//.\\ |