Solved

"echoing" the monitor display to file

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting up static IP - Ubuntu server 16.04 12 62
VMware Tools Install On Linux Problem 3 61
bash file 10 37
Show tab when enter div and change underline color 3 34
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Fine Tune your automatic Updates for Ubuntu / Debian
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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.

773 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