Solved

"echoing" the monitor display to file

Posted on 2002-07-02
2
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

751 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