Back to OP5 Monitor FAQ

How to enable trapper Collector logging

In case the collector daemon is filling up your /var/log/messages with an endless number of lines containing SNMP trap data, you can easily fix this by creating a custom collector service without Syslog options enabled.

The resolution is to change some of the command line arguments passed to the collector daemon. Instead of -Lsd we want to use -Lf /some/place/for/logs/trapper-collector.log.

Some things to keep in mind:

The following instructions are for EL7:

cd /usr/lib/systemd/system
cp collector.service collector-nosyslog.service
sed -i 's/.conf\ -A\ -Lsd\ -f/.conf\ -A -Lf\ \/path\/to\/log\/file/g' collector-nosyslog.service # Replace placeholder path with real path
systemctl disable --now collector.service && systemctl enable --now collector-nosyslog.service
["Geneos"] ["FAQ"]

Was this topic helpful?