Otherwise, for other UNIX systems, grab the latest moodss tarball (at http://jfontain.free.fr/) which contains the moomps source code along with the ready-to-run moomps self-contained executable file.
For the current version (1.2.1), the following packages must be installed before attempting to install moomps:
The stooop (Simple Tcl Only Object Oriented Programming) library is included in the self contained moomps application file. Therefore, it is not required to install the stooop package, unless you want to work on the moomps source code itself. However, should you want to get more information on those extensions, you will find the latest versions:
Finally, if you use moodss modules in a language other than Tcl, such as Perl or Python, you will need:
The poll time is kept independent for each configuration file.
When a threshold is crossed, a corresponding message is generated in the system log with the importance level preset in the moodss thresholds interface (also see syslog manual for further information on the processing of importance levels)
The application periodically checks loaded files for their modification time (also see the -p (--poll-files-time) option).
If any loaded file is modified while the application is running, moomps will detect it and reload that particular file, forgetting the previous configuration defined by that file. For example, it is then possible to load a configuration file in moodss, change a few threshold values, the poll time, ... and have it automatically taken into account by moomps once that configuration file is saved in moodss.
Note that only the files loaded at startup time are checked.
For example, if some of moodss arguments are directories, only the configuration files in those directories present at moomps startup time are checked. That means that files deleted or added (for safety reasons) to those directories are ignored during the lifetime of the application.
You want to (carefully) edit (or create) the /etc/moomps/rc resource file in order to change the From: field of the thresholds alert email messages and the outgoing email SMTP server(s).
For example:
fromAddress yourname@yourhost.yourdomain smtpServers smtp.domain.comUse double quotes for addresses with embedded blanks:
fromAddress "John Doe <jdoe@yourhost.yourdomain>" smtpServers 127.0.0.1And curly braces for lists:
fromAddress "John Doe <jdoe@yourhost.yourdomain>" smtpServers {smtp.domain.com smtp2.domain.com}
Testing that that account actually works for sending email is recommended prior to the first moomps launch. You may use the moomps -m command line option for that purpose.
Comment lines are allowed anywhere in the resource file. They must begin with the traditional pound sign character (#).
# service moomps start
Related information, warning and errors messages are traditionally visible in /var/log/messages, but under the scotty name (unfortunately hardcoded in the Scotty log facilities), with [moomps] in the message however.
If you are on another UNIX system, just launch moomps using the command line switches for now.
You can also start moomps from a terminal using the following options:
$ moomps -h Usage: ./moomps [OPTION]... [DIRECTORY|CONFIGURATIONFILE]... -f, --foreground run in foreground as opposed to daemon mode -h, --help display this help and exit -m, --mailto send an email to specified address at startup -p, --poll-files-time loaded files monitoring poll time in seconds -q, --quiet no status and module messages --version output version information and exitAfter the eventual options described above, specify any number of moodss generated configuration files (.moo files) or directories. For a directory, moomps will load all .moo files in that directory as if they were directly passed on the command line.
The -p (--poll-files-time) option defines the length of the periodic checking of loaded files modification times. A zero value cancels any checking, and implies restarting moomps for changes in loaded files to be taken into account.
By default, files are checked every 60 seconds.
The -m (--mailto) option is used with a valid email address (the software will do a basic validity check and eventually report an error). A test message will be sent to that address at startup time, so that the application email capability can be validated.