Product SiteDocumentation Site

Part V. 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

17. System Monitoring Tools
17.1. Viewing System Processes
17.1.1. Using the ps Command
17.1.2. Using the top Command
17.1.3. Using the System Monitor Tool
17.2. Viewing Memory Usage
17.2.1. Using the free Command
17.2.2. Using the System Monitor Tool
17.3. Viewing CPU Usage
17.3.1. Using the System Monitor Tool
17.4. Viewing Block Devices and File Systems
17.4.1. Using the lsblk Command
17.4.2. Using the blkid Command
17.4.3. Using the partx Command
17.4.4. Using the findmnt Command
17.4.5. Using the df Command
17.4.6. Using the du Command
17.4.7. Using the System Monitor Tool
17.5. Viewing Hardware Information
17.5.1. Using the lspci Command
17.5.2. Using the lsusb Command
17.5.3. Using the lspcmcia Command
17.5.4. Using the lscpu Command
17.6. Monitoring Performance with Net-SNMP
17.6.1. Installing Net-SNMP
17.6.2. Running the Net-SNMP Daemon
17.6.3. Configuring Net-SNMP
17.6.4. Retrieving Performance Data over SNMP
17.6.5. Extending Net-SNMP
17.7. Additional Resources
17.7.1. Installed Documentation
18. Viewing and Managing Log Files
18.1. Locating Log Files
18.2. Basic Configuration of Rsyslog
18.2.1. Filters
18.2.2. Actions
18.2.3. Templates
18.2.4. Global Directives
18.2.5. Log Rotation
18.3. Using the New Configuration Format
18.3.1. Rulesets
18.3.2. Compatibility with syslogd
18.4. Working with Queues in Rsyslog
18.4.1. Defining Queues
18.4.2. Managing Queues
18.5. Configuring rsyslog on a Logging Server
18.5.1. Using The New Template Syntax on a Logging Server
18.6. Using Rsyslog Modules
18.6.1. Importing Text Files
18.6.2. Exporting Messages to a Database
18.6.3. Enabling Encrypted Transport
18.6.4. Using RELP
18.7. Interaction of Rsyslog and Journal
18.8. Structured Logging with Rsyslog
18.8.1. Importing Data from Journal
18.8.2. Filtering Structured Messages
18.8.3. Parsing JSON
18.8.4. Storing Messages in the MongoDB
18.9. Debugging Rsyslog
18.10. Troubleshooting Logging to a Server
18.11. Using the Journal
18.11.1. Viewing Log Files
18.11.2. Access Control
18.11.3. Using The Live View
18.11.4. Filtering Messages
18.11.5. Enabling Persistent Storage
18.12. Managing Log Files in a Graphical Environment
18.12.1. Viewing Log Files
18.12.2. Adding a Log File
18.12.3. Monitoring Log Files
18.13. Additional Resources
19. Automating System Tasks
19.1. Cron and Anacron
19.1.1. Installing Cron and Anacron
19.1.2. Running the Crond Service
19.1.3. Configuring Anacron Jobs
19.1.4. Configuring Cron Jobs
19.1.5. Controlling Access to Cron
19.1.6. Black and White Listing of Cron Jobs
19.2. At and Batch
19.2.1. Installing At and Batch
19.2.2. Running the At Service
19.2.3. Configuring an At Job
19.2.4. Configuring a Batch Job
19.2.5. Viewing Pending Jobs
19.2.6. Additional Command Line Options
19.2.7. Controlling Access to At and Batch
19.3. Additional Resources
20. OProfile
20.1. Overview of Tools
20.1.1. operf vs. opcontrol
20.2. Using operf
20.2.1. Specifying the Kernel
20.2.2. Setting Events to Monitor
20.2.3. Categorization of Samples
20.3. Configuring OProfile Using Legacy Mode
20.3.1. Specifying the Kernel
20.3.2. Setting Events to Monitor
20.3.3. Separating Kernel and User-space Profiles
20.4. Starting and Stopping OProfile Using Legacy Mode
20.5. Saving Data in Legacy Mode
20.6. Analyzing the Data
20.6.1. Using opreport
20.6.2. Using opreport on a Single Executable
20.6.3. Getting More Detailed Output on the Modules
20.6.4. Using opannotate
20.7. Understanding the /dev/oprofile/ directory
20.8. Example Usage
20.9. OProfile Support for Java
20.9.1. Profiling Java Code
20.10. Graphical Interface
20.11. OProfile and SystemTap
20.12. Additional Resources