LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 06-16-2008, 12:22 PM   #1
Jayasimha
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
init logs differently in RHEL 3 and RHEL 5


Hi list,

I am Jayasimha from India, currently working on a log monitoring application on Linux. I am facing an issue about the way the command 'init' logs messages.

The issue I am facing is this - Whenever the init level (runlevel) on an RHEL 3.O box, is changed, the message gets logged to the files /var/log/wtmp (in binary format) and to /var/log/messages (in text format). I can see it when i tail /var/log/messages. Also when I use last -x command, it reports the same to me.

However, in RHEL 5.0 box, I see that the init level change is logged only to /var/log/wtmp. I see the output of last -x correctly shows it. But, the entry regarding the same to /var/log/messages is missing.


Do, I have to make any changes in the system for this entry to appear? I googled around and could not find much information regarding this. Will these kind of changes be documented by RH? I also saw the strace output of changing init level on RHEL 3.0 and did not see any line w.r.t opening /var/log/messages for logging output.

I noticed that a similar question has been posted here in Linux Questions (I am not able to paste the URL here because of an error I am getting regarding a moderation policy here), but the OP has not answered back.

Please provide some pointers on simulating the RHEL 3.0 behaviour in RHEL 5.0 with regards to this runlevel switch.

Thanks In Advance,
--Jayasimha
 
Old 06-16-2008, 01:42 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
Compare the differences in your syslog.conf file where most system logs are told to write the output to.
 
Old 06-16-2008, 01:59 PM   #3
Jayasimha
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
I forgot to mention in the orignal mail - I did compare the syslog.conf file (located in /etc/ directory) and found that there were no changes.
 
Old 07-12-2008, 06:23 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 21,592
Blog Entries: 47

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Just to confirm that in CentOS-5, using SysVinit-2.86-14, runlevel changes are logged to syslog.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 nfs mount hangs on RHEL 3 gwasigh Linux - Networking 1 06-13-2008 10:43 PM
RHEL logs for crashed disks? outtacontrol Linux - Server 1 04-11-2008 06:23 AM
Ghostscript errors after upgrading from RHEL AS 4 to RHEL 5.1. mightyscotchpine Linux - Server 0 04-05-2008 03:44 AM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 06:30 AM
Is CentOS RHEL or RHEL Server? mikes63737 Linux - Distributions 1 02-28-2006 04:35 PM


All times are GMT -5. The time now is 04:27 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration