[Logcheck-devel] Bug#747398: logcheck: make (almost) all cmdline flags settable in the config file
Network Operation Center
noc at iem.at
Thu May 8 09:12:18 UTC 2014
Package: logcheck
Version: 1.3.13
Severity: wishlist
i want to run multiple instances of logcheck on a syslog host, each configured
slightly differently (configuration for each instance lives in
/etc/${LC_INST}/, and the stats live in /var/lib(${LC_INST}).
i can do this with something like:
/usr/sbin/logcheck \
-c /etc/${LC_INST}/logcheck.conf \
-L /etc/${LC_INST}/logcheck.logfiles \
-S /var/lib/${LC_INST}
however, i fail to see why i cannot provide the stats-dir (as given with the
'-S' flag) and the logfiles-file ('-L') in the instance-specific config-file
('-c'), esp. since i *can* set the RULEDIR ('-r').
actually, I think one should be able to use set all cmdline flags in the
configfile (maybe with the exception of the '-c' flag).
most likely all this is already possible (looking at the source-code of
/usr/sbin/logcheck I see that it simply sources CONFIGFILE) but that's nowhere
documented.
fgmasdr
IOhannes
-- System Information:
Debian Release: 6.0.9
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages logcheck depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii cron 3.0pl1-116 process scheduling daemon
ii exim4-daemon-light [mail 4.72-6+squeeze3 lightweight Exim MTA (v4) daemon
ii lockfile-progs 0.1.15+squeeze1 Programs for locking and unlocking
ii logtail 1.3.13 Print log file lines that have not
ii mime-construct 1.11 construct/send MIME messages from
ii syslog-ng [system-log-da 3.1.3-3 Next generation logging daemon
Versions of packages logcheck recommends:
ii logcheck-database 1.3.13 database of system log rules for t
Versions of packages logcheck suggests:
pn syslog-summary <none> (no description available)
-- Configuration Files:
/etc/cron.d/logcheck changed [not included]
/etc/logcheck/logcheck.conf changed [not included]
/etc/logcheck/logcheck.logfiles changed [not included]
-- no debconf information
More information about the Logcheck-devel
mailing list