Building a Monitoring Infrastructure with Nagios

Free Download

Authors:

Edition: 1

ISBN: 9780132236935, 0-13-223693-1

Size: 3 MB (2994683 bytes)

Pages: 255/255

File format:

Language:

Publishing Year:

Category: Tags: , ,

David Josephsen9780132236935, 0-13-223693-1

Build real-world, end-to-end network monitoring solutions with Nagios This is the definitive guide to building low-cost, enterprise-strength monitoring infrastructures with Nagios, the world’s leading open source monitoring tool. Expert network monitoring specialist David Josephsen goes far beyond the basics, demonstrating how to use third-party tools and plug-ins to solve your specific problems in your unique environment. Josephsen introduces Nagios “from the bottom up,” showing how to plan for success and leverage today’s most valuable monitoring best practices. Then, using practical examples, real directives, and working code, Josephsen presents detailed monitoring solutions for Windows, Unix, Linux, network equipment, and other platforms and devices. You’ll find thorough discussions of advanced topics, including the use of data visualization to solve complex monitoring problems. This is also the first Nagios book with comprehensive coverage of using Nagios Event Broker to transform and extend Nagios. · Understand how Nagios works, in depth: the host and service paradigm, plug-ins, scheduling, and notification · Configure Nagios successfully: config files, templates, timeperiods, contacts, hosts, services, escalations, dependencies, andmore· Streamline deployment with scripting templates, automated discovery, and Nagios GUI tools· Use plug-ins and tools to systematically monitor the devices and platforms you need to monitor, the way you need to monitor them· Establish front-ends, visual dashboards, and management interfaces with MRTG and RRDTool· Build new C-based Nagios Event Broker (NEB) modules, one step at a time · Contains easy-to-understand code listings for Unix shells and Perl If you’re responsible for systems monitoring infrastructure in any organization, large or small, this bookwill help you achieve the results you want – right from the start.

Table of contents :
Building a Monitoring Infrastructure with Nagios……Page 1
Contents……Page 8
Acknowledgments……Page 14
About the Author……Page 16
About the Technical Reviewers……Page 18
Do it Right the First Time……Page 20
Why Nagios?……Page 21
What’s in This Book?……Page 23
Who Should Read This Book?……Page 25
A Procedural Approach to Systems Monitoring……Page 26
Bandwidth Considerations……Page 29
Network Location and Dependencies……Page 31
Security……Page 32
Silence Is Golden……Page 34
Who’s Watching the Watchers?……Page 36
CHAPTER 2 Theory of Operations……Page 38
Starting from Scratch……Page 39
Hosts and Services……Page 40
Interdependence……Page 41
The Down Side of Hosts and Services……Page 42
Exit Codes……Page 43
Remote Execution……Page 45
Check Interval and States……Page 48
Distributing the Load……Page 51
Reapers and Parallel Execution……Page 52
Global Gotchas……Page 53
Notification Options……Page 54
Time Periods……Page 55
Scheduled Downtime, Acknowledgments, and Escalations……Page 56
The Web Interface……Page 57
Monitoring……Page 58
Reporting……Page 61
Performance Data……Page 62
The Event Broker……Page 63
OS Support and the FHS……Page 64
Installing Nagios……Page 66
Configure……Page 67
Make Install……Page 69
Patches……Page 70
Colored Statusmap Patch……Page 71
Installing the Plugins……Page 72
Installing NRPE……Page 73
CHAPTER 4 Configuring Nagios……Page 76
Objects and Definitions……Page 77
nagios.cfg……Page 79
The CGI Config……Page 82
Templates……Page 83
Timeperiods……Page 85
Commands……Page 86
Contacts……Page 87
Hosts……Page 89
Services……Page 91
Hostgroups……Page 93
Escalations……Page 94
Dependencies……Page 95
Apache Configuration……Page 97
GO!……Page 98
CHAPTER 5 Bootstrapping the Configs……Page 100
Scripting Templates……Page 101
Nmap and NACE……Page 104
Namespace……Page 106
Fruity……Page 107
Monarch……Page 108
Local Queries……Page 110
Pings……Page 111
Port Queries……Page 113
Querying Multiple Ports……Page 115
(More) Complex Service Checks……Page 117
E2E Monitoring with WebInject……Page 119
The Windows Scripting Environment……Page 123
COM and OLE……Page 125
WMI……Page 126
To WSH or not to WSH……Page 130
To VB or Not to VB……Page 131
The Future of Windows Scripting……Page 132
NRPE……Page 134
NSClient/NSCPlus……Page 136
Watching UNIX……Page 137
CPU……Page 138
Memory……Page 141
Disk……Page 143
SNMP……Page 144
Working with SNMP……Page 147
Environmental Sensors……Page 151
Stand-alone Sensors……Page 152
LMSensors……Page 153
IPMI……Page 154
CHAPTER 7 Visualization……Page 156
Foundations, MRTG, and RRDTool……Page 157
RRDTool……Page 160
RRD Data Types……Page 161
Heartbeat and Step……Page 162
Round Robin Archives……Page 164
RRDTool Create Syntax……Page 165
Shopping for Glue……Page 170
NagiosGraph……Page 171
RRDTool Graph Mode……Page 174
RPN……Page 177
Shopping for Front-Ends……Page 179
drraw……Page 180
Management Interfaces……Page 183
Know What You’re Doing……Page 184
RRDTool Fetch Mode……Page 187
The GD Graphics Library……Page 189
NagVis……Page 191
GraphViz……Page 192
Sparklines……Page 194
Force Directed Graphs with jsvis……Page 196
Function References and Callbacks in C……Page 198
The NEB Architecture……Page 200
Implementing a Filesystem Interface Using NEB……Page 203
APPENDIX A: Configure Options……Page 218
APPENDIX B: nagios.cfg and cgi.cfg……Page 222
Nagios Binary……Page 232
check_ping……Page 233
check_tcp……Page 234
check_http……Page 236
check_disk……Page 238
check_procs……Page 240
C……Page 242
E……Page 245
H……Page 246
J–L……Page 247
M……Page 249
N……Page 250
O……Page 251
Q……Page 252
S……Page 253
V……Page 254
W–Z……Page 255

Reviews

There are no reviews yet.

Be the first to review “Building a Monitoring Infrastructure with Nagios”
Shopping Cart
Scroll to Top