[PDF] [PDF] An Introduction to Monitoring with Nagios - AIMS

What is Nagios? What is Nagios useful Is implemented by a plugin (external command/script) Laurent Links Nagios attributes found in definitions (ex: host name) to plugin parameters ▻ Already Factorizing many low-interest attributes



Previous PDF Next PDF





Advanced Commands

Asignificant part of Nagios monitoring configuration are the commands used to monitor command is executed with actual values from object definitions There are far too many macros to list in this book, but I've covered some of the 



[PDF] Nagios Core Documentation - Nagios Enterprises

Custom commands may now be submitted to Nagios Custom All values that from extended definitions have been merged with host or service definitions, as 



[PDF] Nagios Object Definitions - Mathrice

The command must return a status of OK (0) or Nagios will assume the host is Thus, Nagios will likely always assume the host is up (it may show up as Values: 0 = disable passive host checks, 1 = enable passive host checks (default)



[PDF] Monitoreo/Nagios

check parameters contact/ Nagios define host { host_name router_eng alias Router for the Engineering campus address Is this sufficient to monitor the two Web/Mail servers? Example from /etc/nagios/objects/commands cfg: define 



[PDF] Nagios Documentation - Network Startup Resource Center

New directives - Extended host info and service info definitions now have two new All commands can contain arguments - All command types (host checks, 



[PDF] Nagios Core - Tutorialspoint

Nagios is the most popular continuous monitoring tool It monitors complete IT If you are new to any of these concepts, we suggest you to pick up tutorials related to checks This is how you need to define a command with parameter: define 



[PDF] NAGIOS

Defined hours by persons or groups - The state of Nagios architecture is simple enough that wriVng new plugins is There are many, many plugins available (thousands) Command and arguments are separated by exclamation marks ()



[PDF] An Introduction to Monitoring with Nagios - AIMS

What is Nagios? What is Nagios useful Is implemented by a plugin (external command/script) Laurent Links Nagios attributes found in definitions (ex: host name) to plugin parameters ▻ Already Factorizing many low-interest attributes



[PDF] Performance Monitoring Using Nagios Core HPC4e-ComCiDis

It is important to define some basic terms and associate them with Nagios architecture, 3 - Unknown, if the monitoring service did not get any result A plugin command will be invoked by Nagios core as required, with arguments as 6 

[PDF] command line pdf viewer

[PDF] command prompt troubleshooting windows 8

[PDF] comment apprendre a danser le shuffle

[PDF] comment apprendre a faire la roue

[PDF] comment apprendre la langue arabe facilement

[PDF] comment apprendre la langue arabe gratuitement

[PDF] comment apprendre les jours de la semaine

[PDF] comment apprendre les pas du madison

[PDF] comment bien maitriser un langage de programmation

[PDF] comment calculer le poids d'un objet

[PDF] comment changer la langue sur netflix

[PDF] comment comprendre les fractions en 6ème

[PDF] comment dire langue arabe en anglais

[PDF] comment écrire un texte d'opinion

[PDF] comment éviter la gastro remède de grand mère

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

An Introduction to Monitoring with Nagios

Laurent Andrey R´emi Badonnel

LORIA - INRIA Grand Est

ISSNSM"2008, ZurichLaurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios

1/32Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Introduction

Nagios at a glance

Key concepts

Functional architecture

Services and service states

Nagios configuration

Object definitions

Other elements

Example scenario

Checks and their execution

Local checks

Remote checks

Advanced configurations

ConclusionsLaurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 2/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

References

Motivations

References

www.nagios.org: official distribution (core, plugins and documentation) www.nagiosexchange.org: lots of complementary plugins

W. Barth.

Nagios,System and Network Monitoring.

Open Source Press GmbH, first edition, 2006.

ISBN: 1-59327-070-4.

Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 3/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

References

Motivations

What is Nagios? What is Nagios useful for?

A widely-used monitoring tool for trouble-shooting

Simple and open source

Network, system, service levels

With a sophisticated (?) notification system to inform administrators when something goes wrong Nagios provides support to administrator(s) for detecting problemsbeforeusers (including the boss!)

Mail server failure

Hard drive overload

Network outage

Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 4/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Key concepts

Colored area concept

Green/Yellow/Red (Ok/Warning/Critical)

No performance analysis or display (apriori)

Checks usingexternalcommands (plugins)

Various possibilities forremotechecks

Possibility forpassive checks(from managed resources)

Web interface + notifications

Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 5/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Functional architecture

Notification System

Filters, Contact Delivery

Data Reaping

Resource State Calculation

Web Interface

config log

NAGIOS

Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 6/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Architecture at run-time

Data reaping + notification system=nagios processes

Can be run as a service (rcX.d, soft runlevel)

Web interface

External web server (Apache)

Bunch of cgi scripts (part of Nagios)

Configuration

Simple text files

Or a postgres database

Logs (local files)

Named pipe (unix domain socket) to enable nagios toreceive commands (from cgi, passive asynchronous events) Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 7/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Service, service check

Service

Service delivered by a software

Percentage of free space on a partition

Bandwith usage on a network interface ...

Service check

Provides state information on a service

Returns a value: OK, WARNING, CRITICAL (exit status 0, 1,

2), UNKNOWN (exit status 3, due to time out or plugin

runtime trouble) to reflect the Nagios view about this service Can be local (OS calls) or remote (ICMP, NRPE, SNMP ...) Is implemented by a plugin (external command/script) Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 8/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Service states

Service states are the mirror of what nagios observes

States: OK, WARNING, CRITICAL, UNKNOWN

Transitions from one state to another one based on results provided by checks Critical and warning states are shadowed by relatedsoftstates

A service goes first to asoftstate

Attempt count mecanism to reach a definitivehardstate User notification can only occur whenhardstates are reached Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 9/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Service state diagram

Soft Warning

warning ac==mca ↑problem warning ac++ acHard Warning critical warning ok ;ac←1;↑recovery OK warning ac++ acSoft Critical critical ac++ ac==mca ↑problem critical ac++ acHard Critical warning critical ok ;ac←1;↑recovery Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 10/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Service state diagram legend

HShard state, usingnormal

checkintervalbetween 2 checks

Ssoft state, usingretry

checkintervalbetween 2 checks RS transition triggered by a check with a return status of

RS?{ok,warning,critical}

?ac++

Attempt Countis incremented when transition is

triggered Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 11/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Key concepts

Functional architecture

Services and service states

Service state diagram legend (ctd)

?acAttempt Countis set to 1 then the transition is triggered ?↑notification a user notification?{problem, recovery}is generated when this transition is triggered Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 12/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Object definitions

Other elements

Example scenario

Nagios configuration

Object-oriented representation

A nagios object describes a specific unit: a service, an host, a contact, a contactgroup ... with attributes and values kind of inheritance mechanisms, dependencies amongst objets

Set of configuration files

Main file: nagios.cfg (ref. to other cfg. files)

1 file per object type: services.cfg, hosts.cfg, contacts.cfg,

checkcommands.cfg, misccommands.cfg, timeperiods.cfg ...

Requires anaprioriknowledge

Configuration can also stand into a database

Laurent Andrey, R´emi BadonnelAn Introduction to Monitoring with Nagios 13/32

Introduction

Nagios at a glance

Nagios configuration

Checks and their execution

Advanced configurations

Object definitions

Other elements

Example scenario

Hostquotesdbs_dbs17.pdfusesText_23