Part VII. Monitoring and Automation

This part describes various tools that allow system administrators to monitor system performance, automate system tasks, and report bugs.

Table of Contents

24. System Monitoring Tools
24.1. Viewing System Processes
24.1.1. Using the ps Command
24.1.2. Using the top Command
24.1.3. Using the System Monitor Tool
24.2. Viewing Memory Usage
24.2.1. Using the free Command
24.2.2. Using the System Monitor Tool
24.3. Viewing CPU Usage
24.3.1. Using the System Monitor Tool
24.4. Viewing Block Devices and File Systems
24.4.1. Using the lsblk Command
24.4.2. Using the blkid Command
24.4.3. Using the findmnt Command
24.4.4. Using the df Command
24.4.5. Using the du Command
24.4.6. Using the System Monitor Tool
24.4.7. Monitoring Files and Directories with gamin
24.5. Viewing Hardware Information
24.5.1. Using the lspci Command
24.5.2. Using the lsusb Command
24.5.3. Using the lspcmcia Command
24.5.4. Using the lscpu Command
24.6. Monitoring Performance with Net-SNMP
24.6.1. Installing Net-SNMP
24.6.2. Running the Net-SNMP Daemon
24.6.3. Configuring Net-SNMP
24.6.4. Retrieving Performance Data over SNMP
24.6.5. Extending Net-SNMP
24.7. Additional Resources
24.7.1. Installed Documentation
25. Viewing and Managing Log Files
25.1. Installing rsyslog
25.1.1. Upgrading to rsyslog version 7
25.2. Locating Log Files
25.3. Basic Configuration of Rsyslog
25.3.1. Filters
25.3.2. Actions
25.3.3. Templates
25.3.4. Global Directives
25.3.5. Log Rotation
25.4. Using the New Configuration Format
25.4.1. Rulesets
25.4.2. Compatibility with sysklogd
25.5. Working with Queues in Rsyslog
25.5.1. Defining Queues
25.5.2. Creating a New Directory for rsyslog Log Files
25.5.3. Managing Queues
25.5.4. Using the New Syntax for rsyslog queues
25.6. Configuring rsyslog on a Logging Server
25.6.1. Using The New Template Syntax on a Logging Server
25.7. Using Rsyslog Modules
25.7.1. Importing Text Files
25.7.2. Exporting Messages to a Database
25.7.3. Enabling Encrypted Transport
25.7.4. Using RELP
25.8. Debugging Rsyslog
25.9. Managing Log Files in a Graphical Environment
25.9.1. Viewing Log Files
25.9.2. Adding a Log File
25.9.3. Monitoring Log Files
25.10. Additional Resources
26. Upgrading MySQL
27. Automating System Tasks
27.1. Cron and Anacron
27.1.1. Installing Cron and Anacron
27.1.2. Running the Crond Service
27.1.3. Configuring Anacron Jobs
27.1.4. Configuring Cron Jobs
27.1.5. Controlling Access to Cron
27.1.6. Black and White Listing of Cron Jobs
27.2. At and Batch
27.2.1. Installing At and Batch
27.2.2. Running the At Service
27.2.3. Configuring an At Job
27.2.4. Configuring a Batch Job
27.2.5. Viewing Pending Jobs
27.2.6. Additional Command-Line Options
27.2.7. Controlling Access to At and Batch
27.3. Additional Resources
28. Automatic Bug Reporting Tool (ABRT)
28.1. Installing ABRT and Starting its Services
28.2. Using the Graphical User Interface
28.3. Using the Command-Line Interface
28.3.1. Viewing Problems
28.3.2. Reporting Problems
28.3.3. Deleting Problems
28.4. Configuring ABRT
28.4.1. ABRT Events
28.4.2. Standard ABRT Installation Supported Events
28.4.3. Event Configuration in ABRT GUI
28.4.4. ABRT Specific Configuration
28.4.5. Configuring ABRT to Detect a Kernel Panic
28.4.6. Automatic Downloads and Installation of Debuginfo Packages
28.4.7. Configuring Automatic Reporting for Specific Types of Crashes
28.4.8. Uploading and Reporting Using a Proxy Server
28.4.9. Configuring Automatic Reporting
28.5. Configuring Centralized Crash Collection
28.5.1. Configuration Steps Required on a Dedicated System
28.5.2. Configuration Steps Required on a Client System
28.5.3. Saving Package Information
28.5.4. Testing ABRT's Crash Detection
29. OProfile
29.1. Overview of Tools
29.2. Configuring OProfile
29.2.1. Specifying the Kernel
29.2.2. Setting Events to Monitor
29.2.3. Separating Kernel and User-space Profiles
29.3. Starting and Stopping OProfile
29.4. Saving Data
29.5. Analyzing the Data
29.5.1. Using opreport
29.5.2. Using opreport on a Single Executable
29.5.3. Getting more detailed output on the modules
29.5.4. Using opannotate
29.6. Understanding /dev/oprofile/
29.7. Example Usage
29.8. OProfile Support for Java
29.8.1. Profiling Java Code
29.9. Graphical Interface
29.10. OProfile and SystemTap
29.11. Additional Resources
29.11.1. Installed Docs
29.11.2. Useful Websites