Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Nagios Core Administration Cookbook

You're reading from   Nagios Core Administration Cookbook The ideal book for System Administrators who want to move their network monitoring to an advanced level. This book covers the powerful features and flexibility of Nagios Core, and its recipes can be applied to virtually any network.

Arrow left icon
Product type Paperback
Published in Jan 2013
Publisher Packt
ISBN-13 9781849515566
Length 366 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Tom Ryder Tom Ryder
Author Profile Icon Tom Ryder
Tom Ryder
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Nagios Core Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Understanding Hosts, Services, and Contacts FREE CHAPTER 2. Working with Commands and Plugins 3. Working with Checks and States 4. Configuring Notifications 5. Monitoring Methods 6. Enabling Remote Execution 7. Using the Web Interface 8. Managing Network Layout 9. Managing Configuration 10. Security and Performance 11. Automating and Extending Nagios Core Index

Index

A

  • $ARG1$ / There's more...
  • $ARG2$ / There's more...
  • acknowledgement / There's more...
  • action_url directive / How it works...
  • address / How it works...
  • address directive / How to do it...
  • alias / How it works..., How it works...
  • allowed_hosts directive / There's more...
  • Apache HTTPD server
    • URL / Getting ready
  • Assume Initial States / How it works..., How it works...
  • Assume State Retention / How it works..., How it works...
  • Assume States During Program Downtime / How it works...
  • authenticated contacts
    • using / Using authenticated contacts, Getting ready, How to do it..., How it works...
  • authorized_for_all_hosts directive / How to do it..., How it works...
  • authorized_for_all_host_commands directive / How it works...
  • authorized_for_all_services directive / How to do it..., How it works...
  • authorized_for_all_service_commands directive / How it works...
  • authorized_for_configuration_information directive / How it works...
  • authorized_for_read_only directive / There's more...
  • authorized_for_system_commands directive / How it works...
  • authorized_for_system_information directive / How it works...
  • Availability Report
    • about / Viewing and interpreting availability reports, How to do it...
    • service state breakdowns / How to do it...
    • Report period / How it works...
    • Report time Period / How it works...
    • Assume State Retention / How it works...
    • Assume Initial States / How it works...
    • Assume States During Program Downtime / How it works...
    • Include Soft States / How it works...
    • First Assumed Host State or First Assumed Service State / How it works...
    • Backtracked Archives / How it works...

B

  • Backtracked Archives / How it works..., How it works...

C

  • -c parameter / There's more..., There's more...
  • c, service dependency / How it works...
  • calpe.naginet router / Getting ready
  • cfg_dir directive / How to do it...
  • cfg_file directive / Getting ready
  • CGI Security and Authentication
    • URL / Introduction
  • checks
    • scheduling, from web interface / Scheduling checks from the web interface, How to do it...
  • check_by_ssh plugin / Introduction, Using check_by_ssh with key authentication instead of NRPE, How it works...
  • check_cluster command / How it works...
  • check_cluster plugin / Monitoring individual nodes in a cluster
  • check_command / How it works..., There's more..., How it works...
  • check_command definition / How it works...
  • check_command directive / Getting ready, How to do it..., How it works..., There's more...
  • check_command plugin / Introduction, How to do it..., Changing thresholds for PING RTT and packet loss, Getting ready
  • check_dummy command / How it works...
  • check_http / Creating a new HTTP service
  • check_http plugin / Getting ready, There's more..., There's more...
  • check_http_alt command / How it works...
  • check_http_altport command / Customizing an existing command
  • check_imap command / How it works...
  • check_interval / How it works..., How it works...
  • check_load plugin / Using check_by_ssh with key authentication instead of NRPE
  • check_mysql_query plugin / There's more...
  • check_nagios plugin / How it works...
  • check_nrpe command / How to do it...
  • check_nrpe plugin / Introduction, How it works...
  • check_nrpe request / There's more...
  • check_nrpe requests / How to do it...
  • check_period / How it works..., How it works...
  • check_period plugin / How to do it..., How it works...
  • check_ping command / Getting ready, How to do it...
  • check_ping program / There's more...
  • check_pop command / How it works...
  • check_rsync_backup / There's more...
  • check_smtp command / How it works...
  • check_snmp plugin / Introduction
  • check_snmp_linux_procs command / How it works...
  • check_ssh command / How to do it..., How it works, There's more..., How to do it...
  • check_ssh plugin / There's more...
  • check_ssh script / Defining macros in a resource file
  • check_ssh_altport command / How it works...
  • check_swap plugin / How to do it...
  • check_total_procs command / How it works...
  • c notification / How it works...
  • command
    • new command, creating for plugin / Creating a new command, How it works...
  • command_line directive / How it works..., How it works...
  • command_name directive / Defining macros in a resource file
  • Comment / How to do it...
  • Comprehensive Perl Archive Network (CPAN) / Getting ready
  • configuration
    • placing, under version control / Keeping configuration under version control, How it works...
    • simplifying, inheritance used / Using inheritance to simplify configuration, How to do it..., How it works...
  • configuration files
    • grouping, in directories / Grouping configuration files in directories, How it works..., There's more...
  • config_file definition / How to do it...
  • contactgroup
    • creating / Creating a new contactgroup
    • creating, steps for / How to do it..., How it works...
  • contact rotation
    • automating / Automating contact rotation, How to do it..., How it works...
  • contacts / How it works...
  • contacts directive / How it works...
  • contact_group definition / How to do it...
  • contact_groups / How it works...
  • contact_name / How it works...
  • contact_name directive / How it works...
  • corinth.naginet host / How it works...
  • corsica.naginet server / There's more...
  • corsica.naginet web server / Getting ready
  • CRITICAL state / There's more..., How it works...

D

  • d, host dependency / How it works...
  • database services
    • monitoring / Monitoring database services, Getting ready, How to do it...
  • debugging log file
    • about / Writing debugging information to a Nagios log file, How to do it...
  • debug_level directive / How it works...
  • default_statusmap_layout directive / How it works...
  • default_user_name directive / How it works...
  • dependent_host_name directive, host dependency / How it works...
  • dependent_service_description directive, service dependency / How it works...
  • directories
    • configuration files, grouping in / Grouping configuration files in directories, How it works..., There's more...
  • d notification / How it works...
  • Domain Name System (DNS) / Creating a new network host
  • Domain Name System (DNS) zone / There's more...
  • DOWN notification / How it works...
  • DOWN state / How to do it...
  • downtime / There's more...
  • Drawing Layers / There's more...
  • Drawing Layers option / There's more...

E

  • --expect / There's more...
  • e-mail contact
    • creating / Creating a new e-mail contact, How to do it..., How it works...
  • email / How it works...
  • escalation
    • defining, for repeated notifications / Defining an escalation for repeated notifications, Getting ready, How it works...
  • event handler script
    • setting up / Setting up an event handler script, How to do it..., How it works..., There's more...
  • eventhandlers directory / How it works...
  • event_handler command / How it works...
  • execution_failure_criteria directive, host dependency / How it works...
  • execution_failure_criteria directive, service dependency / How it works...

F

  • failed checks
    • about / Tolerating a certain number of failed checks, How to do it..., How it works...
  • First Assumed Host State or First Assumed Service State / How it works..., How it works...
  • first_notification / How it works...
  • flapping percentage thresholds
    • adjusting, for service / Adjusting flapping percentage thresholds for a service, How it works...
  • f notification / How it works...

G

  • GD2 library / How it works...
  • generic-host template / How it works...
  • generic-service template / How to do it...
  • GNU m4
    • URL / Getting ready
  • groups
    • used, for configuring host roles / Configuring host roles using groups, How to do it..., There's more...
    • building, regular expressions used / Building groups using regular expressions, How to do it..., How it works...

H

  • $HOSTADDRESS$ / There's more...
  • $HOSTSTATEID
    • hostname$ macros / How it works...
  • -H option / There's more...
  • -H parameter / There's more...
  • handle-master-proc-event
    • $SERVICESTATE$ argument / How it works...
    • $SERVICESTATETYPE$ argument / How it works...
    • $SERVICEATTEMPT$ argument / How it works...
  • HARD CRITICAL state / How it works...
  • hardware device
    • monitoring / Monitoring a RAID or other hardware device, How to do it...
  • high_flap_threshold / How it works...
  • Histogram report / How to do it...
  • host
    • checking, frequency for / Introduction, How to do it..., How it works..., There's more...
    • downtime, scheduling for / Scheduling downtime for a host or service, How to do it..., How it works...
    • PING, monitoring / Monitoring PING for any host
    • SSH, monitoring / Getting ready
    • SSH service check, adding / How to do it...
    • web service checks, adding / How to do it...
  • host definitions
    • building, dynamically / Dynamically building host definitions, How to do it..., How it works...
  • host dependency
    • establishing / Establishing a host dependency, How to do it...
    • directives / How it works...
    • host_name directive / How it works...
    • dependent_host_name directive / How it works...
    • execution_failure_criteria directive / How it works...
    • o / How it works...
    • d / How it works...
    • u / How it works...
    • p / How it works...
    • notification_failure_criteria directive / How it works...
    • hostgroup_name directive / There's more...
    • dependent_hostgroup_name directive / There's more...
  • hostextinfo object / How it works...
  • hostgroup
    • creating / Creating a new hostgroup, How to do it..., There's more...
  • hostgroups directive / How to do it...
  • hostgroup_members directive / There's more...
  • hostgroup_name directive / There's more..., There's more..., There's more...
  • host roles
    • configuring, groups used / Configuring host roles using groups, How to do it..., There's more...
  • hosts
    • alternative check command, using / Using an alternative check command for hosts, How to do it..., There's more...
    • icons, selecting / Choosing icons for hosts, How to do it..., How it works...
  • host state
    • tracking, with Nagiosgraph / Tracking host and service states with Nagiosgraph, Getting ready, How to do it..., There's more...
  • host_name / How it works..., How it works..., How it works...
  • host_name directive, host dependency / How it works...
  • host_name directive, service dependency / How it works...
  • host_notification_commands / How it works...
  • host_notification_options / How it works...
  • host_notification_period / How it works...
  • host_notification_period directive / How it works...
  • HTTP service
    • creating / Creating a new HTTP service, Getting ready, How to do it..., How it works...

I

  • --invert-regex flag / There's more...
  • icons
    • selecting, for hosts / Choosing icons for hosts, How to do it..., How it works...
  • icon_image_alt directive / How it works...
  • Include Soft States / How it works..., How it works...
  • individual nodes
    • in cluster, monitoring / Monitoring individual nodes in a cluster, How to do it..., How it works...
  • inheritance
    • used, for simplifying configuration / Using inheritance to simplify configuration, How to do it..., How it works...
  • INSTALL document / Getting ready
  • ithaca.naginet host / How it works...

J

  • janus.naginet router / Getting ready

K

  • kill command / How to do it...

L

  • last_notification / How it works...
  • Layer mode / There's more...
  • Layout Method / There's more...
  • Liferea
    • URL / How to do it...
  • local services
    • monitoring on remote machine, with NRPE / Monitoring local services on a remote machine with NRPE, Getting ready, How to do it..., How it works..., There's more...
  • low_flap_threshold / How it works...

M

  • --mrtg option / How it works...
  • macros
    • defining, in resource file / Defining macros in a resource file, How to do it..., There's more...
  • mail services
    • monitoring / Monitoring mail services, How to do it..., How it works..., There's more...
  • MAIL_LOGIN service / Getting ready
  • Makefile syntax / There's more...
  • max_check_attempts / How it works..., How it works..., How it works...
  • max_debug_file_size directive / There's more...
  • mrtg (Multi-Router Traffic Grapher) / Monitoring Nagios performance with Nagiostats

N

  • Nagios
    • Tuning for Maximum Performance, URL / Introduction
  • nagiosadmin user / Getting ready
  • Nagios Core
    • about / Introduction, Introduction
    • configuration / Introduction
    • plugin / Introduction
    • notifications / Introduction
    • URL / Introduction
    • macros / How it works...
  • Nagios Core configuration
    • verifying / How to do it..., How it works...
  • Nagios Core objects configuration directory / How to do it...
  • Nagios Core reports
    • customised reports, writing / Writing customized Nagios Core reports, How to do it...
  • Nagios Core server
    • securing, tips for / Introduction
    • redundant monitoring host, setting up / How to do it..., How it works...
  • Nagios Core web interface
    • authentication for / Requiring authentication for the web interface, How to do it..., How it works...
    • authenticated contacts, using / Using authenticated contacts, How to do it..., How it works...
  • Nagios Exchange
    • URL / There's more..., There's more..., Introduction
    • about / There's more...
  • Nagiosgraph
    • about / Introduction
    • host state, tracking / Tracking host and service states with Nagiosgraph, Getting ready
    • service state, tracking / Tracking host and service states with Nagiosgraph, Getting ready
  • Nagios log file
    • debugging information, writing / Writing debugging information to a Nagios log file
  • Nagios performance
    • monitoring, with Nagiostats / Monitoring Nagios performance with Nagiostats, How to do it..., How it works...
  • Nagios Plugins
    • about / Introduction
  • Nagios Remote Plugin Executor (NRPE) / There's more...
  • Nagiostats
    • used, for monitoring Nagios performance / Monitoring Nagios performance with Nagiostats, How to do it..., How it works...
  • NagVis
    • about / Introduction, Getting extra visualizations with NagVis
    • installing, with NDO backend / How to do it..., How it works...
  • NagVis extension / There's more...
  • Natural Earth website
    • URL / Getting ready
  • ndo2db / How it works...
  • NDO backend
    • NagVis, installing / How to do it..., How it works...
  • ndomod / How it works...
  • NDOUtils
    • about / Introduction, Reading status into a MySQL database with NDOUtils
    • installing / How to do it...
    • downloading / How to do it...
  • Net-SNMP / Getting ready
  • network host
    • creating / Creating a new network host, Getting ready, How to do it...
    • working / How it works...
  • network host hierarchy
    • creating / Creating a network host hierarchy, Getting ready
    • parent-child relationship, configuring for hosts / How to do it..., How it works...
  • network map
    • using / Using the network map
    • using, steps for / How to do it...
    • working / How it works...
    • using, as overlay / Using the network map as an overlay, Getting ready
    • background, setting up / How to do it...
  • new time period
    • creating, steps for / How to do it..., How it works..., There's more...
  • notification history
    • about / Viewing and interpreting notification history
    • overview / How to do it...
    • Histogram report / How to do it...
    • working / How it works...
  • notifications
    • about / Introduction
    • periods, configuring / Configuring notification periods, How to do it..., How it works...
    • configuring, for groups / Configuring notification for groups, How to do it...
    • types, configuring for hosts / How to do it..., How it works...
    • escalation, defining for repeated notifications / Defining an escalation for repeated notifications, How it works...
    • custom notification method, defining / Defining a custom notification method, How to do it..., How it works..., There's more...
  • notification_failure_criteria directive, host dependency / How it works...
  • notification_failure_criteria directive, service dependency / How it works...
  • notification_interval / How it works..., How it works..., How it works...
  • notification_option flag / How it works...
  • notification_options directive
    • d notification / How it works...
    • u notification / How it works...
    • r notification / How it works...
    • f notification / How it works...
    • s notification / How it works...
  • notification_period / How it works..., How it works...
  • notification_period plugin / How to do it..., How it works...
  • NRPE
    • local services, monitoring on remote machine / Monitoring local services on a remote machine with NRPE
    • listening address, setting / Setting the listening address for NRPE, Getting ready, How it works...
    • allowed client hosts, setting / Setting allowed client hosts for NRPE, How to do it..., How it works..., There's more...
    • command definitions, creating securely / Creating new NRPE command definitions securely, How to do it..., How it works..., There's more...
    • sudo privileges, giving / Giving limited sudo privileges to NRPE, How to do it...
    • limited sudo privileges, giving / Giving limited sudo privileges to NRPE, How to do it..., How it works...
  • nrpe.cfg parameter / There's more...
  • nrpe daemon / How to do it...
  • NSCA
    • about / Introduction
    • passive checks, submitting from remote hosts / Submitting passive checks from a remote host with NSCA, How to do it..., How it works..., There's more...

O

  • o, host dependency / How it works...
  • o, service dependency / How it works...
  • on-call roster / Automating contact rotation

P

  • -p parameter / There's more..., There's more...
  • p, host dependency / How it works...
  • p, service dependency / How it works...
  • packet loss
    • thresholds, changing / Changing thresholds for PING RTT and packet loss, How to do it...
  • parent-child relationship
    • configuring / How to do it...
  • parent host / Getting ready
  • passive checks
    • allowing / Allowing and submitting passive checks, Getting ready, How to do it...
    • submitting from remote host, with NSCA / Submitting passive checks from a remote host with NSCA, How to do it..., How it works..., There's more...
    • submitting, in SNMP traps response / Submitting passive checks in response to SNMP traps, Getting ready, How to do it...
  • Persistent Comment / How to do it...
  • PING / Creating a new network host
    • monitoring, for host / Monitoring PING for any host, How to do it...
  • PING RTT
    • thresholds, changing / Changing thresholds for PING RTT and packet loss
  • plugin
    • about / Introduction
    • finding / Finding a plugin
    • finding, steps for / How to do it..., How it works...
    • installing / Installing a plugin, How to do it...
    • downloading / How to do it...
    • working / How it works...
    • removing / Removing a plugin, There's more...
    • new command, creating / Creating a new command, How it works...
    • new service, creating / Customizing an existing command, How it works..., There's more...
    • new plugin, creating from scratch / Writing a new plugin from scratch, How to do it..., How it works..., There's more...
  • PNP4Nagios
    • URL / There's more...
  • pre-cached object files
    • startup times, improving / Improving startup times with pre-cached object files, How to do it...
  • precached_object_file directive / How it works...

Q

  • QuickStart guide
    • URL / Getting ready

R

  • RAID
    • monitoring / Monitoring a RAID or other hardware device, How to do it...
  • redundant monitoring host
    • setting up / Setting up a redundant monitoring host, Getting ready
    • setting up, for Nagios Core server / How to do it..., How it works...
  • regular expressions
    • used, for building groups / Building groups using regular expressions, How to do it..., How it works...
  • remote hosts
    • passive checks submitting from, with NSCA / Submitting passive checks from a remote host with NSCA, How to do it..., How it works..., There's more...
  • Report period / How it works..., How it works...
  • Report time Period / How it works...
  • resource file
    • macros, defining / Defining macros in a resource file, How to do it..., There's more...
  • retry_interval / How it works..., How it works...
  • retry_interval command / There's more...
  • retry_interval directive / How to do it...
  • r notification / How it works...
  • Round Trip Tim (RTT) / How to do it...
  • Round Trip Time (RTT) / How to do it...
  • rsync module / How it works...

S

  • --string / How it works...
  • Scaling factor / There's more...
  • securing, Nagios Core server
    • tips for / Introduction
  • Send Notification / How to do it...
  • service
    • running, on hosts in group / Running a service on all hosts in a group, How to do it..., There's more...
    • new service, creating / Customizing an existing command, How it works..., There's more...
    • checking, frequency for / Introduction
    • downtime, scheduling for / How to do it..., How it works...
    • flapping percentage thresholds, adjusting for / Adjusting flapping percentage thresholds for a service, How it works..., There's more...
  • service dependency
    • establishing / Establishing a service dependency, How to do it...
    • host_name directive / How it works...
    • service_description directive / How it works...
    • dependent_service_description directive / How it works...
    • execution_failure_criteria directive / How it works...
    • o / How it works...
    • w / How it works...
    • c / How it works...
    • u / How it works...
    • p / How it works...
    • notification_failure_criteria directive / How it works...
  • servicegroup
    • creating / Getting ready, How to do it..., How it works..., There's more...
  • service state
    • tracking, with Nagiosgraph / Tracking host and service states with Nagiosgraph, Getting ready, How to do it..., There's more...
  • service state trends
    • about / How to do it..., How it works...
  • service_description / How it works...
  • service_description directive / How to do it...
  • service_description directive, service dependency / How it works...
  • service_description plugin / How it works...
  • service_notification_commands / How it works...
  • service_notification_options / How it works...
  • service_notification_period / How it works...
  • service_notification_period directive / How it works...
  • service_perfdata_file_processing_command directive / How it works...
  • Simple Network Management Protocol (SNMP) / Introduction
  • SNMP OID
    • creating, to monitor / Creating an SNMP OID to monitor
    • custom setup / How to do it...
  • SNMP traps / Getting ready
  • SNMP Trap Translator / Getting ready
  • snmptt handler / How it works...
  • snmpwalk command / Getting ready
  • s notification / How it works...
  • SOFT state / How to do it...
  • sparta.naginet.cfg / How it works...
  • sparta.naginet server / How it works...
  • SSH
    • monitoring, for host / Monitoring SSH for any host, How to do it..., There's more...
    • alternative SSH port, checking / Checking an alternative SSH port, How to do it..., How it works..., There's more...
  • SSH service check
    • adding, to host / How to do it...
  • startup times
    • improving, with pre-cached object files / Improving startup times with pre-cached object files, How to do it..., There's more...
  • statusmap_image directive / How it works...
  • Sticky Acknowledgement / How to do it...
  • Sticky Acknowledgement option / How it works...
  • submit_check_result handler / How it works...
  • Suppress image map / How it works...
  • Suppress popups / How it works..., There's more...

T

  • Tactical Monitoring Overview screen / How to do it...
  • Tactical Overview
    • about / Using the Tactical Overview
    • Tactical Monitoring Overview screen / How to do it...
    • working / How it works..., There's more...
  • Tactical Overview section / How to do it...
  • telnet tool / Getting ready
  • thresholds
    • changing, for PING RTT / Changing thresholds for PING RTT and packet loss
    • changing, for packet loss / Changing thresholds for PING RTT and packet loss
  • time period
    • creating / Creating a new time period

U

  • $USER1$ / There's more...
  • u, host dependency / How it works...
  • u, service dependency / How it works...
  • u notification / How it works...
  • UNREACHABLE notification / How to do it...
  • UNREACHABLE notifications / How it works...
  • UNREACHABLE state / How to do it...
  • use_regexp_matching directive set / How it works...

V

  • version control
    • configuration, placing / Keeping configuration under version control, How it works...

W

  • -w parameter / There's more..., There's more...
  • w, service dependency / How it works...
  • web interface
    • comments, adding on services / Adding comments on hosts or services in the web interface, How to do it..., How it works...
    • comments, adding on hosts / Adding comments on hosts or services in the web interface, How to do it..., How it works...
    • configuration, viewing / Viewing configuration in the web interface, How to do it..., How it works...
    • checks, scheduling / Scheduling checks from the web interface, How to do it...
    • used, for acknowledging problem / Acknowledging a problem via the web interface, How to do it..., How it works..., There's more...
    • authentication, using / Requiring authentication for the web interface
    • working / How it works...
  • WEBMAIL_LOGIN service / There's more...
  • web services
    • monitoring / Monitoring web services
    • checks, adding for hosts / How to do it..., There's more...
  • website
    • string, returning / Checking that a website returns a given string, How to do it...
  • w notification / How it works...
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime