Solved

"echoing" the monitor display to file

Posted on 2002-07-02
2
138 Views
Last Modified: 2013-11-18
HI
I have a remote server and have found on numerous occasions when visiting the server room, that there are plenty of system generated messages on the monitor, some of them critical warnings which I would like to be able to see even when not physically at the server room, ir, when logged in remotely, I want to be able to access those messages.
Are those messages logged somewhere?
Before you flame me for a stupid question, I have looked at /var/log/messages, but it is empty always, so part of this question is ; which process is responsible for filling those logs? syslogd? --> I always have a syslogd process runnning on my system, can I try to restart it? Where do I tell it where to log to?
0
Comment
Question by:psimation
2 Comments
 
LVL 20

Accepted Solution

by:
Gns earned 50 total points
ID: 7126408
Presuming that you are not running a windowing system on the console, the messages are logged to the console via the syslog facility, and thus visible there. To confuse matters some, kernel related issues get logged by the klogd facility.

Read the man pages for syslogd, syslog.conf and klogd:
man syslog.conf syslogd klogd
Then, if you feel the need for it, you may make an educated change to /etc/syslog.conf.

To avoid filling the /var filesystem with more or less stale logfiles, these are usually "rotated" by some facility such as logrotate, that will copy messages.3 to messages.4, messages.2 to messages.3 etc, removing the "last" logfile, and creating a new (empty) "first" logfile. the behaviour is highly configurable though, check the manpage.
On a system with some uptime, this leads to "lowtraffic logfiles" apearing to be continually empty.

There are several programs that will let you "steal" the console, xconsole is one, and display the results in a window. This window can either be displayed on a remote X server, or you might try vnc (a little like pcANYWHERE), and run the xconsole in that.

-- Glenn
0
 
LVL 17

Author Comment

by:psimation
ID: 7552907
thanks, will give it a try
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now