Learning Nagios 4
eBook - ePub

Learning Nagios 4

Wojciech Kocjan

Partager le livre
  1. 400 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Learning Nagios 4

Wojciech Kocjan

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Learning Nagios 4 est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Learning Nagios 4 par Wojciech Kocjan en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et System Administration. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
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 des matiĂšres