On 2015-01-13 19:31, Andrei Borzenkov wrote:
В Tue, 13 Jan 2015 17:41:13 +0100 "Carlos E. R." <> пишет:
Because syntax is wrong. As written in manual, difference between Lf and LF (or small and capital form in general) is extra argument that sets priority. So in
-Lf n /var/log/net-snmpd.log
"-Lf n" is log file option (may be you have file with name "n" somewhere now) and /var/log/net-snmpd.log is interpreted as normal argument which is "listening address". So snmptrapd simply attempts to listen on it; because it looks like file name, it is interpreted as Unix domain socket.
LOL.
"-Lf /path/to/file" vs. "-LF <prio> /path/to/file"
I said it was not for the faint of heart, did I? :)
Yes, you did. But I do have an snmp log now, I got it working. It was actually very easy, just replace an "n" with a "7" in "/etc/sysconfig/net-snmp" (to increase log level verbosity) and restart the daemon. Whether I go further than this or not, I don't know. I'll just keep the daemon listening to find out what the router sends. So far, just a hello world. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)