# Define custom options in /etc/sysconfig/salinfo_decode_all
#
# All variables come in two forms, global (applies to all record types) and
# per record (only applies to that record type).  The per record variables
# have a prefix of 'CMC_', 'CPE_', 'INIT_' or 'MCA_', global settings have no
# prefix.  The global value is used if there is no record specific variable in
# the environment.
#
# Required variables are :-
#
# DIRECTORY		The value passed as parameter -D to salinfo_decode.
#
# RETRIES		How many times a version of salinfo_decode is restarted
#			before we give up and log the failure.
#
# Optional variables are :-
#
# INODE_PCT		Passed as -i <value> to salinfo_decode.
#
# SPACE_PCT		Passed as -s <value> to salinfo_decode.
#
# RATE_LIMIT		Passed as -l <value> to salinfo_decode.
#
# TRIGGER		Passed as -T <value> to salinfo_decode.

# Required variables
DIRECTORY=/var/log/salinfo
RETRIES=3

# Optional variables, these are rule of thumb limits
INODE_PCT=90	# drop records if inodes used is >= 90%
SPACE_PCT=90	# drop records if space used is >= 90%

# Overall rate limit
RATE_LIMIT=10	# drop records if more than 10/minute
# INIT is sent to all cpus, so the limit must scale with the number of cpus.
INIT_RATE_LIMIT=$((2*$(grep '^processor' /proc/cpuinfo | wc -l)))
# MCA is only sent to one cpu at a time, use a low limit.
MCA_RATE_LIMIT=4

# TRIGGER= is not set, it only makes sense if you install a post processing program
