Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm looking for suggestions of common logs that must be checked on a Linux server. I know this depends on which services are running and so, but in general, which logs should I check?
Also, are there tools to make it easier? Or should I write my custom script?
Finally, how do you monitor the performance of a Linux server?
I'm looking for suggestions of common logs that must be checked on a Linux server. I know this depends on which services are running and so, but in general, which logs should I check?
The 'default' log is /var/log/messages or /var/log/syslog. But you can log things to ANY file, so it all depends on how you have syslog set up. And each service can also have its own log file, independent of the system log.
Quote:
Also, are there tools to make it easier? Or should I write my custom script?
Any tool you find will have to be customized, since only YOU would know what you're looking for, and where. Depending on your needs, it MIGHT be easier to write your own...it might not.
Quote:
Finally, how do you monitor the performance of a Linux server?
The same way you monitor it for any OTHER server. And again, it all depends on what's running on it. For some servers (Database servers, for example), it might be absolutely normal for a disk to be 99% full, and have most of the RAM consumed. Web servers may have MANY http processes running.
Your questions are fairly open-ended...not really a good answer for any of them.
Monitoring logs can be a rather complex task to undertake. It may appear simple at first glance, but when you start working on it, it can get cumbersome. i'll respond back shortly with a list of logs that are generally watched by every system administrator or application developer.
I use <moderated> to monitor all my logs. However, to use it though, you have to have Nagios installed on your local server. if you dont want to install Nagios, you can use Cron.
<moderated>
The above log check command will basically check and monitor the [ /var/log/syslog ] log file for any new occurrences of the strings specified.
You may also want to keep an eye on your package install log files:
On Ubuntu, this log file is:
/var/log/dpkg.log (keep track of packages installed on the system)
On RedHat/CentOS hosts, log file is:
/var/log/yum.log
Last edited by colucix; 12-24-2013 at 05:45 AM.
Reason: Removed link to commercial software.
@MonitoringSpecialist: we are glad if you registered to give a hand to answer questions, but please don't post links to non-free software sites. They are considered advertising and advertising is not allowed here. Thank you in advance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.