The configuration directory - configdir


Introduction

The configdir is the place where ESM stores it's configuration. Usually the configdir /usr/local/esm/etc however you may change that with command line options. Each monitor and sender has it's own configuration file. When esmd starts up it reads each file in configdir and adds the monitors and senders configured.

Adding plugins.

Adding a plugin is very easy. There are only 3 things you have to specify.

Now that you have your plugin config file just save it with any name, althrough I recomend logical names so you don't go insane when you update things. :)

The esm.conf file.

The file esm.conf is special. If a config file is named that a different set of rules apply. esm.conf is used to set general options like the update interval. However the format of esm.conf is the same as any other config file.

Example monitor config file

title ESM Date
cmd esmdate
monitor

Example sender config file

title Email Sender
cmd emailsender
sender 1

Example esm.conf file

updateinterval 1m
monitortimeout 10s
sendertimeout 10s
module_kill_signal_interval 3s

Index
© 1999, 2000 Peter Todd
Last update - $Id: configdir.html,v 5.2 2000/05/02 00:38:42 pete Exp $