Book description
Good system administrators recognize problems long before anyone asks, "Hey, is the Internet down?" Nagios, an open source system and network monitoring tool, has emerged as the most popular solution for sys admins in organizations of all sizes. It's robust but also complex, and Nagios: System and Network Monitoring, 2nd Edition, updated to address Nagios 3.0, will help you take full advantage of this program.
Nagios, which runs on Linux and most *nix variants, can be configured to continuously monitor network services such as SMTP, POP3, HTTP, NNTP, SSH, and FTP. It can also supervise host resources (processor load, disk and memory usage, running processes, log files, and so on) and environmental factors, such as temperature and humidity. This book is your guide to getting the most out of this versatile and powerful monitoring tool.
Inside Nagios, you'll learn how to:
Install and configure the Nagios core, all standard plugins, and selected third-party plugins
Configure the notification system to alert you of ongoing problems-and to alarm others in case of a serious crisis
Program event handlers to take automatic action when trouble occurs
Write Perl plugins to customize Nagios for your unique needs
Quickly understand your Nagios data using graphing and visualization tools
Monitor Windows servers, SAP systems, and Oracle databases
The book also includes a chapter that highlights the differences between Nagios versions 2 and 3 and gives practical migration and compatibility tips. Nagios: System and Network Monitoring, 2nd Edition is a great starting point for configuring and using Nagios in your own environment.
Table of contents
-
Nagios: System and Network Monitoring, 2nd Edition
- Foreword to the second edition
- Introduction
-
I. From Source Code to a Running Installation
- 1. Installation
-
2. Nagios Configuration
- 2.1 The Main Configuration File nagios.cfg
- 2.2 Objects—an Overview
- 2.3 Defining the Machines to Be Monitored, with host
- 2.4 Grouping Computers Together with hostgroup
- 2.5 Defining Services to Be Monitored with service
- 2.6 Grouping Services Together with servicegroup
- 2.7 Defining Addressees for Error Messages: contact
- 2.8 The Message Recipient: contactgroup
- 2.9 When Nagios Needs to Do Something: The command Object
- 2.10 Defining a Time Period with timeperiod
- 2.11 Templates
- 2.12 Configuration Aids for Those Too Lazy to Type
- 2.13 CGI Configuration in cgi.cfg
- 2.14 The Resources File resource.cfg
- 3. Startup
-
II. In More Detail...
- 4. Nagios Basics
- 5. Service Checks and How They Are Performed
-
6. Plugins for Network Services
- 6.1 Standard Options
- 6.2 Reachability Test with Ping
- 6.3 Monitoring Mail Servers
- 6.4 Monitoring FTP and Web Servers
- 6.5 Domain Name Server Under Control
- 6.5.1 DNS check with nslookup
- 6.5.2 Monitoring the name server with dig
- 6.6 Querying the Secure Shell Server
- 6.7 Generic Network Plugins
- 6.7.2 Monitoring UDP ports
- 6.8 Monitoring Databases
- 6.9 Monitoring LDAP Directory Services
- 6.10 Checking a DHCP Server
- 6.11 Monitoring UPS with the Network UPS Tools
- 6.12 Health Check of an NTP Server with check_ntp_peer
-
7. Testing Local Resources
- 7.1 Free Hard Drive Capacity
- 7.2 Utilization of the Swap Space
- 7.3 Testing the System Load
- 7.4 Monitoring Processes
- 7.5 Checking Log Files
- 7.6 Keeping Tabs on the Number of Logged-In Users
- 7.7 Checking the System Time
- 7.8 Regularly Checking the Status of the Mail Queue
- 7.9 Keeping an Eye on the Modification Date of a File
- 7.10 Monitoring UPSs with apcupsd
- 7.11 Nagios Monitors Itself
- 7.12 Hardware Checks with LM Sensors
- 8. Plugins for Special Tasks
- 9. Executing Plugins via SSH
- 10. The Nagios Remote Plugin Executor (NRPE)
-
11. Collecting Information Relevant for Monitoring with SNMP
- 11.1 Introduction to SNMP
- 11.2 NET-SNMP
- 11.3 Nagios's Own SNMP Plugins
- 11.4 Other SNMP-based Plugins
-
12. The Nagios Notification System
- 12.1 Who Should be Informed of What, When?
- 12.2 When Does a Message Occur?
- 12.3 The Message Filter
- 12.4 External Notification Programs
- 12.5 Escalation Management
- 12.6 Accounting for Dependencies between Hosts and Services
- 13. Passive Tests with the External Command File
- 14. The Nagios Service Check Acceptor (NSCA)
- 15. Distributed Monitoring
-
III. The Web Interface and Other Ways to Visualize Nagios Data
-
16. The Classical Web Interface
- 16.1 Recognizing and Acting On Problems
-
16.2 An Overview of the Individual CGI Programs
- 16.2.1 Variations in status display: status.cgi
- 16.2.2 Additional information and control center: extinfo.cgi
- 16.2.3 Interface for external commands: cmd.cgi
- 16.2.4 The most important things at a glance: tac.cgi
- 16.2.5 The topological map of the network: statusmap.cgi
- 16.2.6 Navigation in 3D: statuswrl.cgi
- 16.2.7 Querying the status with a cell phone: statuswml.cgi
- 16.2.8 Analyzing disrupted partial networks: outages.cgi
- 16.2.9 Querying the object definition with config.cgi
- 16.2.10 Availability statistics: avail.cgi
- 16.2.11 What events occur, how often?—histogram.Cgi
- 16.2.12 Filtering log entries after specific states: history.cgi
- 16.2.13 Who was told what, when?— notifications.Cgi
- 16.2.14 Showing all log file entries: showlog.cgi
- 16.2.15 Evaluating whatever you want: summary.cgi
- 16.2.16 Following states graphically over time: trends.Cgi
- 16.3 Planning Downtimes
- 16.4 Additional Information on Hosts and Services
- 16.5 Configuration Changes through the Web Interfaces: the Restart Problem
- 16.6 Modern Layout with the Nuvola Style
- 17. Flexible Web Interface with the NDOUtils
- 18. NagVis
-
19. Graphic Display of Performance Data
- 19.1 Processing Plugin Performance Data with Nagios
- 19.2 Graphs for the Web with Nagiosgraph
- 19.3 Preparing Performance Data for Evaluation with Perf2rrd
- 19.4 The Graphics Specialist drraw
- 19.5 Automated to a Large Extent: NagiosGrapher
- 19.6 Smooth Plotting with PNP
- 19.7 Other Tools and the Limits of Graphic Evaluation
-
16. The Classical Web Interface
-
IV. Part IV Special Applications
-
20. Monitoring Windows Servers
- 20.1 Agent-less Checks via WMI
- 20.2 Installing and Configuring the Additional Services
- 20.3 The check_nt Plugin
-
20.4 NRPE for Windows
- 20.4.1 NRPE_NT, the classic tool
- 20.4.2 Plugins for NRPE in Windows
- 20.4.3 NRPE with NSClient++
-
20.4.4 Internal NSClient++ functions
- Checking file sizes with CheckFileSize
- Checking how full drives are with CheckDriveSize
- Checking CPU load with CheckCPU
- Determining the uptime with CheckUpTime
- Activity check with CheckServiceState
- Monitoring processes with CheckProcState
- Checking memory load with CheckMem
- Checking the performance counter with CheckCounter
- Evaluating log entries with CheckEventLog
- The debug functions CheckAlwaysOK, CheckAlwaysWARNING, and CheckAlwaysCRITICAL
- Summarizing several checks with CheckMultiple
- 21. Monitoring Room Temperature and Humidity
- 22. Monitoring SAP Systems
- 23. Processing Events with the EventDB
-
20. Monitoring Windows Servers
- V. Part V Development
-
VI. Part VI Appendixes
- A. An Overview of the Nagios Configuration Parameters
- B. Rapidly Alternating States: Flapping
- C. Event Handlers
- D. Macros
- E. Single Sign-On for the Nagios Web Interface
- F. Tips on Optimizing Performance
- G. The Embedded Perl Interpreter
-
H. What's New in Nagios 3.0?
- H.1 Changes in Object Definitions
- H.2 Variable and Macros
- H.3 Downtime, Comments, and Acknowledgments
- H.4 Rapidly Changing States
- H.5 External Commands
- H.6 Embedded Perl
- H.7 A New Logic for Host Checks
- H.8 Restart
- H.9 Performance Optimization
- H.10 Extended Plugin Output
- H.11 CGI
- H.12 Miscellaneous
- H.13 Upgrade from Nagios 2.x to 3.0
Product information
- Title: Nagios, 2nd Edition
- Author(s):
- Release date: October 2008
- Publisher(s): No Starch Press
- ISBN: 9781593271794
You might also like
book
Learning Nagios - Third Edition
Learn and monitor your entire IT infrastructure to ensure your systems, applications, services, and business function …
book
Learning Nagios 4
For system administrators who want a fast, easily understood introduction to Nagios 4, this is the …
book
Nagios Core Administration Cookbook - Second Edition
Over 90 hands-on recipes that will employ Nagios Core as the anchor of monitoring on your …
book
Nagios Core Administration Cookbook
The ideal book for System Administrators who want to move their network monitoring to an advanced …