Add new CLI options to support logging to Syslog and journald.
journald support is also behind a new CMake flag, SUPPORT_JOURNALD,
since it adds a dependency on libsystemd-journal.
Add --quiet, which will disable output to STDOUT/STDERR. Useful
when logging directly to the above mentioned loggers.
Add --log-level, to allow for mix and match log levels, for example
only warning and critical can be enabled together.
New usage output:
VERsatile MONitoring Tool - VERMONT
MANDATORY OPTIONS:
-f, --config-file FILE Use configuration file
OTHER OPTIONS:
-h, --help Display this help and exit
-d, --debug Log verbosity: -d NOTICE, -dd INFO,
-ddd DEBUG
-l, --log-level LEVEL Log level. Can be specified multiple
times and mix-matched.
In increasing order:
debug
info
notice
warning
error
critical
Default: critical, warning, error
-q, --quiet Do not write output to console
-b, --daemon Run in daemon mode (implies -q)
-p, --pid-file FILE Set process id filename (use with -d)
-u, --user USER Change user to USER (use with -d)
-g, --group GROUP Change group to GROUP (use with -d)
-s, --syslog Log to syslog
-j, --journald Log to journald
Add script to parse IANA's registered IPFIX information elements and
data types and output as #define for header files.
Output IEs, data types and IE lengths.
injectUDPToCollector dependencies (pcap) has been specified
with simply "pcap". This fails on systems that have libpcap
not in their standard linking directory. Use macro
${PCAP_LIBRARY} instead.
Add a simple tool to help debugging the collector.
injectUDPToCollector reads from a pcap capture file and can replay
the Netflow payload to a specified collector
Signed-off-by: Luca Bruno <lucab@debian.org>
* Tried to find and improve all places where reading beyond set and message bounderies could happen
* Tested the new parser with some forged testpackets, and it seems to work correctly
Note: The handling of variable length fields is still not threat-proof (see FIXMEs in IpfixParser.cpp)
git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@1517 aef3b71b-58ee-0310-9ba9-8811b9f0742f
(functions which want to add another element are blocked by a semaphore)
* TimeoutSemaphore checks regularly if program has been shut down
(so it's not a problem to use TimeoutSemaphore::pop any more)
* changes in logging and debugging module:
* timestamp output
* thread ids are shown
* optional parameters in msg.h (PRINT_*) enable output of current filename
and line number and/or function name
* logging is threadsafe now!
* new function DPRINTFL which allows specification of debug level
* new macro THROWEXCEPTION which logs and throws an error
(all occurences of throw std::runtime_error have been replaced)
* msg.c renamed to msg.cc (as c++ code is inside it)
* new configure flag: --enable-pcapmmap
if this flag is enabled, make will look for libpcap-mmap in
../libpcap-mmap/libpcap.a (so the library has to be compiled beforehand)
* Lock renamed into Mutex
* removed bugs:
* removed small comparison bug in TimeoutSemaphore, which caused Vermont to
segfault very rarely and converted the color of a few hairs to grey ...
* removed bug in autoconf config
* removed bug in HookingFilter
* lots of new debugging output
* removed unused file Semaphore.h
* various tiny improvements
* various additional comments
* various code cleanups
git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@930 aef3b71b-58ee-0310-9ba9-8811b9f0742f
IpfixCollector now uses a ConcurrentQueue.
ConcurrentQueue can now hold non-pointer types.
git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@851 aef3b71b-58ee-0310-9ba9-8811b9f0742f
- sampler: payload now exported with variable length fields (no padding)
git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@558 aef3b71b-58ee-0310-9ba9-8811b9f0742f
- testcollector now part of VERMONT package (thanx to Christoph)
git-svn-id: file:///Users/braun/svn/vermont/trunk/vermont@525 aef3b71b-58ee-0310-9ba9-8811b9f0742f