Kernel Logging Not Working :: How to fix ? Print

  • 4

When you run a CSF firewall to check your server's security, sometimes you get below mentioned warning, especially on a VPS running OpenVZ + cPanel

syslogd appears to be running, but not klogd which logs kernel firewall messages to syslog. You should ensure that klogd is running

Do the following steps to resolve the issue.

1. Root login to the server via WinSCP
2. Edit /etc/init.d/syslog
3. Search the line below, (nearly at line # 42)
passed klogd skipped #daemon klogd $KLOGD_OPTIONS
4. Replace it with lines below,
#passed klogd skipped
daemon klogd $KLOGD_OPTIONS
5. Now search 'status klogd' (nearly at line #61) and un-comment it.
6. Restart syslog via /etc/init.d/syslog restart

This should fix the issue.

Was this answer helpful?

« Back