| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
EMT can gather data for several instances of a program on the same host. These named command instances are defined via the configuration files as part of the section heading. For example, to gather data from two running instances of MySQL on the same machine you define two emt_mysql sections, followed by a colon(:) and the instance name, for example:
[emt_mysql:foo] host=:/home/ebergen/mysql/mysql-5.0.51a/mysql_foo.sock user=foo-root password= [emt_mysql:bar] host=:/home/ebergen/mysql/mysql-5.0.51a/mysql_bar.sock user=bar_root password=
For each instance defined in the configuration, EMT will execute a command with the specific config object (created from the instance configuration section) for that instance. When the output handler is called, the instance name is set in the field object so that output handlers know which instance they're working with.