LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   redirect watchdog messages to log file, not to console (screen) (https://www.linuxquestions.org/questions/linux-kernel-70/redirect-watchdog-messages-to-log-file-not-to-console-screen-4175598401/)

cocoerto 01-27-2017 04:56 PM

redirect watchdog messages to log file, not to console (screen)
 
I realy need your help, for redirect the messages from watchdog to log file, I'm recive a lot of messages on console on all clients, my server have RHEL7

Jan 27 12:24:05 prod kernel: NMI watchdog: BUG: soft lockup - CPU#7 stuck for 22s! [migration/7:43]
Jan 27 12:24:06 prod kernel: NMI watchdog: BUG: soft lockup - CPU#42 stuck for 22s! [ps:53836]
Jan 27 12:24:08 prod kernel: NMI watchdog: BUG: soft lockup - CPU#5 stuck for 22s! [migration/5:33]
Jan 27 12:24:14 prod kernel: NMI watchdog: BUG: soft lockup - CPU#88 stuck for 22s! [migration/88:455]
Jan 27 12:24:16 prod kernel: NMI watchdog: BUG: soft lockup - CPU#66 stuck for 23s! [migration/66:344]

I put the following rule on /etc/rsyslog.cong but does not work, and the messages persist on console (screen)

kern.* /var/log/kern.log
after: systemctl restart rsyslog

Maybe watchdog need a special rule?, someone can help me!

Thanks a lot for your help

smallpond 01-31-2017 05:14 PM

Wouldn't it be better to fix the bad code that is locking up in kernel mode?


All times are GMT -5. The time now is 05:44 PM.