Solved

"echoing" the monitor display to file

Posted on 2002-07-02
2
141 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run same command on multiple files in Linux 3 60
maybe no no httpd.conf 6 63
Recover Lacie Edmini data. 11 55
Centos 7 DNS server not replying to clients 3 10
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

821 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