Chapter 5. Monitoring Methods

In this chapter, we will cover the following topics:

  • Monitoring PING for any host
  • Monitoring SSH for any host
  • Checking an alternative SSH port
  • Monitoring mail services
  • Monitoring web services
  • Checking that a website returns a given string
  • Monitoring database services
  • Monitoring the output of an SNMP query
  • Monitoring a RAID or other hardware device
  • Creating an SNMP OID for monitoring

Introduction

Nagios Core is best thought of as a monitoring framework that uses plugins to perform appropriate checks on hosts and services, and returns results about their states in a format that it understands and can use for sending notifications and keeping track of states on a longer term basis.

The design is quite flexible; as explained in the ...

Get Nagios Core Administration Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.