LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-27-2017, 04:56 PM   #1
cocoerto
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
Question 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
 
Old 01-31-2017, 05:14 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,137

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/log/messages popping up in my console JakesHat Linux - Server 1 07-05-2012 09:06 PM
redirect security related event messages to the system log? frznchckn Red Hat 1 05-16-2009 07:26 PM
redirecting log messages to /dev/console mlalitha Linux - Newbie 0 01-19-2009 05:09 AM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
How do i get rid of log messages in the console using Guarddog macondo Linux - Security 1 02-11-2005 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration