# Configuration file for alerter

$VERSION = "1.0.4";
$VERBOSITY = 5;
$POLL_INTERVAL = 2;

$DB_CONNECT_STRING = "dbi:Pg:dbname=ipfc";
$DB_USERNAME = "alerter";
$DB_PASSWORD = "";

$ALERT_QUEUE_NAME = "alert_queue"; # table name for alerts to be treated
$ALERT_QUEUE_FINISHED_NAME = "alert_queue_finished"; # table for alerts that have been treated
$ALERT_BLOCKS = 500; # treat at most 500 alerts in one database query
$DO_COMMIT = 1;

# The ALERT hash contains (for now) the names of the procedures to be called
# when an event of a certain type is encountered.
# the type specification possibilities are :
#
# 'agent_id=<agent_id>,event_type=<event_type>'
# 'agent_id=<agent_id>,event_type=<event_type>,event_subtype=<event_subtype>'
# 'agent_id=<agent_id>,event_type=<event_type>,event_subtype=<event_subtype>,event_version=<event_version>'
# 'agent_type=<agent_type>,event_type=<event_type>'
# 'agent_type=<agent_type>,event_type=<event_type>,event_subtype=<event_subtype>'
# 'agent_type=<agent_type>,event_type=<event_type>,event_subtype=<event_subtype>,event_version=<event_version>'
# 'default'

$ALERT{'default'} 				= "alert_default";
$ALERT{'agent_type=syslog,event_type=log'} 	= "alert_syslog_default";

require "alert-default.pl";
require "alert-syslog-default.pl";

return 1;


