|
Variables and conditionals | |
|---|---|
| set <variable> <value>... | Sets a symbol. See the Symbols section for more information |
| if <cond>
elseif <cond> else endif |
Lexical control. See the lexical control section for more information |
| print <message> ... | print <message> to standard output. |
| abort <message> ... | Abort the program, displaying <message>. |
Logging | |
| log <type> <to> <level> | Define a logging channel. <type> can be ``file'', ``syslog'' or ``email''. <level> indicates the level of logging required, and can be ``debug'', ``info'', ``warning'', ``error'', ``fatal'' or ``none''. ``fatal'' indicates only fatal errors. If the type is ``file'', <to> is either the file name or ``stderr'' to refer to standard error. If the type is ``syslog'', <to> refers to the facility to use. If type is ``email'', <to> is the email address to mail errors to. Multiple ``file'' or ``email'' channels can be defined, however only one ``syslog'' channel can be specified. Log file names can contain strftime() time specifiers. |
| logdir <dir> | Specify directory to write log files to |
Merge definitions | |
|
merge <name>
<..> end merge |
Starts a merge block. Name is used to identify this block in the status file and to select just this block with the -m <name> option. |
| source <src> ... | Specifies the names of the data sources that will be merged. Data sources are identified in the header lines of each sample. |
| aggregate <interval> <file> | Aggregate samples into <secs> periods, and write the aggregated samples to <file>. <file> may contain strftime() arguments, and the file is appended on each run. |
|