Just installed checkmk raw 2.4.0p13 on alma 9 and after configuring some hosts and services i wanted to try and use it to receive syslog messages and snmp traps.
So i enabled both in global settings, enabling even “Syslog-like message logging”, and restarted the server.
Tried to send some test syslog messages and snmp traps, but nothing appears in
Monitor\ Event Console \ Events.
Not sure if I’m supposed to do anything else to make checkmk ingest those messages, but I suspect the problem is that the syslog and snmptraps processes managed by checkmk are listening in ipv6 only, in spite of the fact that in the OS i completely disabled ipv6.
To expand on Andreas’ explanation a bit: on Linux there’s a knob in the proc file system controlling this behavior called /proc/sys/net/ipv6/bindv6only Its default, at least on most Linux distros I’m aware of, is 0 meaning the option is off, meaning sockets listening to certain wildcard addresses will not bind to IPv6 only, but to IPv4 as well.
Note that I’m specifically talking about wildcard addresses, usually displayed as *:<port> or maybe :::<port> with :: being the IPv6 wildcard address (IPv4 equivalent 0.0.0.0). An entry such as ::1:12345 would really mean that this socket is only listening on the IPv6 localhost address ::1 on port 12345, but not on the IPv4 localhost address 127.0.0.1, as ::1 is not a wildcard address. Therefore if you have daemons configured to listen on localhost only and they properly support IPv6 they’ll show up twice in netstat or lsof output.