Setting the Messages to Monitor

You define the messages you want Big Brother to report on by adding entries to the etc/bb-msgstab file. Since the message test is performed by the Big Brother client software, you must make your entries in the file on the client host, not the server host. You can have a separate file on each client with just the definitions for that client; however, to ensure consistency and make maintenance easier, we recommend you have a single file with message definitions for all clients, which you distribute to all hosts which run the UNIX client. The format of each line of the file is:

hostname: filename(s) : misc settings : yellow string(s) : red string(s) : strings to ignore

In all fields except hostname, you can make multiple entries; separate each two entries with a semicolon (;).

The client uses the entries in this order:

This means the strings listed in the localhost or blank host lines are reported for all hosts, whether there is also a separate line for that host or not. If there is a line for a specific host, the strings on it are also reported on.

You can include multiple lines for one host; this lets you use different settings for different files on the same host.

Here are two examples:

www.bb4.com: /var/log/messages : : WARNING : NOTICE : not this message ; and this one either
www1.bb4.com: /var/log/maillog : : refused : ERROR ; error ; BAD SU : from www.bb4.com

Use the etc/bb-msgstab.DIST file as a starting point; copy it to etc/bb-msgstab and modify as desired.

Tip. You can reset the colored dot from red or yellow to green by removing the corresponding tmp/MSG.red.* or tmp/MSG.yellow.* file.  Those files contain previous error messages; they are removed when they expire.

Note. The log files you specify are checked to make sure they are readable and not empty.  The empty test is done because some hackers sometimes link log files to /dev/null. However, on some systems, when the logs are rotated they are left empty. If this is your case, you have two choices:

echo "`date`" >> <message file(s)>

You can also use a syslogd feature to add a line to each message file.