error_mgr

Purpose:

Manage error messages by receiving them from tasks, storing them in an SQLite database, filtering duplicates, and performing maintenance to optimize storage.

Enter:

error_mgr [p=priority] [s=max_size] [max_days=maximum_days] [-debug]

Arguments can be in any order and are optional.

Where:

p=priority Optional. Specify the priority of the program. The default is 19.
s=max_size Optional. Specify how many entries to store before removing old entries. Default is 20 million
max_days=maximum_days Optional. Specify the maximum days to hold backup errors.
-debug Optional. Specify this flag to enable debug messages.

Example:

error_mgr &

The above spawns the error manager with a priority of 19. It will keep 20 million records in the database before it removes half of the oldest errors.

error_mgr  p=24 s=10000000 &

The above spawns the error manager with a priority of 24. It will keep 10 million records in the database before it removes half of the oldest errors.

Notes:

Error manager generates an error file if it encounters any errors at /data/errors/error_mgr.log. it only removes errors now when the size argument has been reached, which defaults is 20 million records. Once that many errors has been reached, it will remove half of the oldest. So with the default, it will remove 10 million records.

See Also: