Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

"echoing" the monitor display to file

Posted on 2002-07-02
2
Medium Priority
?
149 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 150 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

916 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