Learning Nagios 4
eBook - ePub

Learning Nagios 4

Wojciech Kocjan

Share book
  1. 400 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Nagios 4

Wojciech Kocjan

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

One of the most important challenges in system monitoring is to detect and report any malfunctioning system or device as soon as possible, so that you as an administrator are aware of the problem before a user runs into one.

Nagios is a powerful monitoring tool that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes. It monitors your entire IT infrastructure to ensure systems, applications, services, and business processes are functioning properly. In the event of a failure, Nagios can alert the technical staff of the problem, allowing them to begin remediation processes before outages affect business processes, end-users, or customers.

"Learning Nagios 4" is a practical, beginner-level book that introduces you to setting up Nagios and walks you through all the basics of configuring it. It will guide you through the process of getting Nagios 4 up and running, using the web interface and monitoring IT systems. This book will also help you with understanding the typical problems encountered in setting up large-scale Nagios environments, as well as guide you through creating your very own Nagios plug-ins.

"Learning Nagios 4" will introduce Nagios to the system administrators who are interested in monitoring their systems as well as networks. This book starts by guiding you through setting up and configuring your first instance of Nagios so you can quickly start using it to ensure your IT is working properly.

The book also covers using SNMP to monitor various network-enabled devices. You will also find out how to use NSClient++ to monitor Microsoft Windows systems. The book explains distributed monitoring using multiple Nagios instances. Also, if you want to create your own plug-ins for Nagios, this book will teach you how to do so using programming languages like C and scripting languages like PHP, Perl, shell and Python.

By the end of this book, you will have all the necessary knowledge you need to set up Nagios 4 as well as for using Nagios in a large, distributed environment that monitors a large number of computers, services, and devices.

Approach

This book will introduce Nagios to readers who are interested in monitoring their systems. All the concepts in the book are explained in a simplified manner, presented in an easy-to-understand language with lots of tips, tricks, and illustrations.

Who this book is for

This book is great for system administrators interested in using Nagios to monitor their systems. It will also help professionals who have already worked with earlier versions of Nagios to understand the new features of Nagios 4 and provides usable solutions to real-life problems related to Nagios administration. To effectively use this book, system administration knowledge is required. If you want to create your own plug-ins, knowledge of scripting languages like Perl, shell and Python is expected.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning Nagios 4 an online PDF/ePUB?
Yes, you can access Learning Nagios 4 by Wojciech Kocjan in PDF and/or ePUB format, as well as other popular books in Informatica & Amministrazione di sistemi. We have over one million books available in our catalogue for you to explore.

Information

Year
2014
ISBN
9781783288649

Learning Nagios 4


Table of Contents

Learning Nagios 4
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing Nagios
Understanding the basics of Nagios
The benefits of monitoring resources
Main features
Soft and hard states
What's new in Nagios 4.0
Summary
2. Installing Nagios 4
Installation
Upgrading from previous versions
Installing prerequisites
Obtaining Nagios
Setting up users and groups
Compiling and installing Nagios
Compiling and installing Nagios plugins
Setting up Nagios as a system service
Resolving errors with script for Nagios system service
Configuring Nagios
Creating the main configuration file
Understanding macro definitions
Configuring hosts
Configuring host groups
Configuring services
Configuring service groups
Configuring commands
Configuring time periods
Configuring contacts
Configuring contact groups
Verifying the configuration
Understanding notifications
Templates and object inheritance
Summary
3. Using the Nagios Web Interface
Setting up the web interface
Configuring the web server
Creating an administrative user for Nagios
Accessing the web interface
Troubleshooting
Using the web interface
Checking the tactical overview
Viewing the status map
Managing hosts
Checking statuses
Viewing host information
Managing services
Checking statuses
Viewing service information
Managing downtime
Checking downtime statuses
Scheduling downtime
Managing comments
Nagios information
Viewing process information
Checking performance information
Generating reports
Changing the look of the Nagios web interface
Third-party Nagios web interfaces
Summary
4. Using the Nagios Plugins
Understanding how checks work
Monitoring using the standard network plugins
Testing the connection to a remote host
Testing the connectivity using TCP and UDP
Monitoring the e-mail servers
Checking the POP3 and IMAP servers
Testing the SMTP protocol
Monitoring network services
Checking the FTP server
Verifying the DHCP protocol
Monitoring the Nagios process
Testing the websites
Monitoring the database systems
Checking MySQL
Checking PostgreSQL
Checking Oracle
Checking other databases
Monitoring the storage space
Checking the swap space
Monitoring the disk status using SMART
Checking the disk space
Testing the free space for remote shares
Monitoring the resources
Checking the system load
Checking the processes
Monitoring the logged-in users
Monitoring other operations
Checking for updates with APT
Monitoring the UPS status
Gathering information from the lm-sensors
Using the dummy check plugin
Manipulating other plugins' output
Additional and third-party plugins
Monitoring the network software
Using third-party plugins
Summary
5. Advanced Configuration
Creating maintainable configurations
Configuring the file structure
Defining the dependencies
Creating the host dependencies
Creating the service dependencies
Using the templates
Creating the templates
Inheriting from multiple templates
Using the custom variables
Understanding flapping
Summary
6. Notifications and Events
Creating effective notifications
Using multiple notifications
Sending instant messages via Jabber
Notifying users with text messages
Integrating with HipChat
Understanding escalations
Setting up escalations
Understanding how escalations work
Sending commands to Nagios
Adding comments to hosts and services
Scheduling host and service checks
Modifying custom variables
Creating event handlers
Restarting services automatically
Modifying notifications
Using adaptive monitoring
Summary
7. Passive Checks and NSCA
Understanding passive checks
Configuring passive checks
Sending passive check results for hosts
Sending passive check results for services
Troubleshooting errors
Using NSCA
Downloading NSCA
Compiling NSCA
Configuring the NSCA server
Sending results over NSCA
Configuring NSCA for secure communication
Summary
8. Monitoring Remote Hosts
Monitoring over SSH
Configuring the SSH connection
Using the check_by_ssh plugin
Performing multiple checks
Troubleshooting the SSH-based checks
Monitoring using NRPE
Obtaining NRPE
Compiling NRPE
Configuring the NRPE daemon
Setting up NRPE as a system service
Configuring Nagios for NRPE
Using command arguments with NRPE
Troubleshooting NRPE
Comparing NRPE and SSH
Alternatives to SSH and NRPE
Summary
9. Monitoring using SNMP
Introducing SNMP
Understanding data objects
Working with SNMP and MIB
Using graphical tools
Setting up an SNMP agent
Using SNMP from Nagios
Receiving traps
Using additional plugins
Summary
10. Advanced Monitoring
Monitoring Windows hosts
Setting up NSClient++
Performing tests using check_nt
Performing checks with NRPE protocol
Performing passive checks using NSCA Protocol
Understanding distributed monitoring
Introducing obsessive notifications
Configuring Nagios instances
Performing freshness checking
Using templates for distributed monitoring
Creating the host and service objects
Customizing checks with custom variables
Summary
11. Programming Nagios
Introducing Nagios customizations
Programming in C with libnagios
Creating custom active checks
Testing the correctness of the MySQL database
Monitoring local time with a time server
Writing plugins correctly
Checking websites
Virtualization and clouds
Monitoring VMware
Monitoring Amazon Web Services
Writing commands to send notifications
Managing Nagios
Using passive checks
Summary
12. Using the Query Handler
Introducing the query handler
Communicating with the query handler
Using the query handler programmatically
Using the core service
Introducing Nagios Event Radio Dispatcher
Displaying real-time status updates
Displaying checks using Gource
Summary
Index

Learning Nagios 4

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written pe...

Table of contents