Newer
Older
soukal
committed
# Use of this source is governed by a BSD-style license, see LICENSE file.
Jan Soukal
committed
# (for more information se issue #596) - Should be removed in Warden client 3.0
# Array containg event attributes that has already been reported to user as obsolete.
our %report_obsolete = ();
$report_obsolete{'priority'} = 1;
$report_obsolete{'timeout'} = 1;
# end of issue #596
# preset of default variables
our $URI = undef;
our $SSL_KEY_FILE = undef;
our $SSL_CERT_FILE = undef;
our $SSL_CA_FILE = undef;
our $MAX_RCV_EVENTS_LIMIT = undef;
our $LOG_STDERR = 1;
our $LOG_SYSLOG = 0;
our $LOG_SYSLOG_FACILITY = "local7";
our $LOG_VERBOSE = 0;
Jan Soukal
committed
our $VERSION = "2.2";
# load configuration variables set by user
unless (do $conf_file) {
die("Errors in config file '$conf_file': $@") if $@;
die("Can't read config file '$conf_file': $!") unless defined $_;
# if $_ defined, it's retvalue of last statement of conf, for which we don't care