2010 These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (http://creativecommons.org/licenses/by-nc/3.0/)

Slides:



Advertisements
Similar presentations
© 2003, Cisco Systems, Inc. All rights reserved..
Advertisements

Bangkok, Thailand An Introduction intERLab at AIT Network Management Workshop March – Bangkok, Thailand Hervey Allen & Phil Regnauld.
Nagios and Kentix System Partners - Critical Monitoring Alerts in Your Hand Tanja Lewit
1 CHEP 2000, Roberto Barbera Roberto Barbera (*) Grid monitoring with NAGIOS WP3-INFN Meeting, Naples, (*) Work in collaboration with.
Network Monitoring with Nagios and other tools Wednesday, 19 July 2006 Martin B. Smith
Network Monitoring with Nagios. Joint technical meeting #2 What is a network monitoring system? A combination of hardware and software used to administer.
M. Bechtel, S. Blümel, A. Quignon1 Linux Network Server Group: Nagios Marc Bechtel Sebastian Blümel Alexandre Quignon.
TAC Vista Security. Target  TAC Vista & Security Integration  Key customer groups –Existing TAC Vista users Provide features and hardware for security.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
1 MASTERING (VIRTUAL) NETWORKS A Case Study of Virtualizing Internet Lab Avin Chen Borokhovich Michael Goldfeld Arik.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
11 Distributed Monitoring and Cloud Scaling for Web Apps Fernando Hönig
Papeete, French Polynesia PacNOG 5 Papeete, French Polynesia 17 June 2009 Hervey Allen.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
DONE-10: Adminserver Survival Tips Brian Bowman Product Manager, Data Management Group.
Internet Addressing. When your computer is on the Internet, anything you do requires data to be transmitted and received. For example, when you visit.
Passive Monitoring with Nagios Jim Prins
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Your university or experiment logo here Nagios: An introduction and Brief Tutorial Chris Brew SciTech/PPD.
Josh Riggs Utilizing Open Source Network Monitoring.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Cognos TM1 Satya Mobile:
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
workshop eugene, oregon Nagios Network Design and Operations 24 July 2009
1. A key measurement tool for actively monitoring availability of devices and services. Possible the most used open source network monitoring software.
2010 These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
INFN-GRID Testbed Monitoring System Roberto Barbera Paolo Lo Re Giuseppe Sava Gennaro Tortone.
Introduction To Nagios A Linux-based Monitoring System.
11 Distributed Monitoring for Web Apps Fernando Hönig
Network Monitoring Manage your business without blowing your budget. Learn how the Calhoun ISD utilizes free “Open Source” tools for real-time monitoring.
Version How to Use Packet Tracer MarinaMD.
Graphing and statistics with Cacti AfNOG 11, Kigali/Rwanda.
Nagios Speaker: Yan-Shiang Wang Adviser: Quincy Wu Date: 2005/12/21.
Nagios The monitoring tool. Why ? Nagios is a powerful, modular network monitoring system that can be used to monitor many network services like smtp,
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
NAGIOS 1. Introduction A key measurement tool for actively monitoring availability of devices and services. Possible the most used open source network.
1 Grid Monitoring with Nagios Aries Hung, Joanna Huang, Felix Lee, Min Tsai ASGC WLCG T2 Asia Workshop TIFR, Dec 2, 2006.
Systems and User Interface Software. Types of Operating System  Single User  Multi User  Multi-tasking  Batch Processing  Interactive  Real Time.
2010 NAGIOS APRICOT 2010 Kuala Lumpur, Malaysia.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
SMOOTHWALL FIREWALL By Nitheish Kumarr. INTRODUCTION  Smooth wall Express is a Linux based firewall produced by the Smooth wall Open Source Project Team.
Queensland University of Technology Nagios – an Open Source monitoring solution and it’s deployment at QUT.
ADMINISTRACIÓN DE SERVICIOS PARA LA WEB BRENDA GONZÁLEZ GÓMEZ
2008 Taipei, Taiwan An Introduction APRICOT 2008 Network Management Workshop February – Taipei, Taiwan Hervey Allen & Phil.
11 DEPLOYING AN UPDATE MANAGEMENT INFRASTRUCTURE Chapter 6.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
Nagios - introduction Dhruba Raj Bhandari ( CCNA ) p Additions by Phil Regnauld.
2009 Manila, Philippines Nagios APRICOT February 2009 Hervey Allen.
Nagios FTW TriLUG 8/10/06 Presented by: Jason Faulkner Ian Kilgore.
1 Hervey Allen Sebastian Buettrich PacNOG 6 Nadi, Fiji.
'08 Rabat An Introduction AfNOG 2008 Network Management Workshop June 1-2 – Rabat, Morocco Hervey Allen & Phil Regnauld.
Monitoring IBMi by Nagios Core & Nagiosgraph
Network Management Workshop March – Bangkok, Thailand
Advisor : Quincy Wu Speaker : Xang-Ting Date : 2010/06/08
Chapter Objectives In this chapter, you will learn:
CCNA Routing and Switching Routing and Switching Essentials v6.0
What is nagios? Version 2 8/ M.A.Newhall.
Chapter 10: Device Discovery, Management, and Maintenance
CCNA Routing and Switching Routing and Switching Essentials v6.0
Configuration of Cisco Routers in GNS3
Nagios – Our Open Source Network Management Solution
Adding Objects To Nagios 3.0
Chapter 10: Device Discovery, Management, and Maintenance
Introduction to Ansible
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
Introducing MagicInfo 6
Presentation transcript:

These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license ( as part of the ICANN, ISOC and NSRC Registry Operations Curriculum. NAGIOS AfNOG 2010 Network Monitoring and Management Tutorial

Introduction A key measurement tool for actively monitoring availability of devices and services. Possible the most used open source network monitoring software. Has a web interface.  Uses CGIs written in C for faster response and scalability. Can support up to thousands of devices and services.

Installation In Debian/Ubuntu # apt-get install nagios3 Files are installed here: /etc/nagios3 /etc/nagios3/conf.d /etc/nagios-plugins/conf /usr/share/nagios3/htdocs/images/logos /usr/sbin/nagios3 /usr/sbin/nagios3stats Nagios web interface is here:

Nagios Web Interface We’ll demonstrate this now…

More sample screenshots Many more sample Nagios screenshots available here: reenshots

Features Verification of availability is delegated to plugins:  The product's architecture is simple enough that writing new plugins is fairly easy in the language of your choice.  There are many, many plugins available. Nagios uses parallel checking and forking. - Version 3 of Nagios does this better.

Features cont. Has intelligent checking capabilities. Attempts to distribute the server load of running Nagios (for larger sites) and the load placed on devices being checked. Configuration is done in simple, plain text files, but that can contain much detail and are based on templates. Nagios reads it's configuration from an entire directory. You decide how to define individual files.

Features cont. Utilizes topology to determine dependencies.  Nagios differentiates between what is down vs. what is not available. This way it avoids running unnecessary checks. Nagios allows you to define how you send notifications based on combinations of:  Contacts and lists of contacts  Devices and groups of devices  Services and groups of services  Defined hours by persons or groups.  The state of a service.

The concept of “parents” Nodes can have parents: For example, the parent of a PC connected to a switch would be the switch. This allows us to specify the network dependencies that exist between machines, switches, routers, etc. This avoids having Nagios send alarms when a parent does not respond. A node can have multiple parents.

Network viewpoint concept Where you locate your Nagios server will determine your point of view of the network. Nagios allows for parallel Nagios boxes that run at other locations on a network. Often it makes sense to place your Nagios server nearer the border of your network vs. in the core.

Network viewpoint

Configuration Files Located in /etc/nagios3/ Important files include: cgi.cfgControls the web interface and security options. commands.cfgThe commands that Nagios uses for notifications. nagios.cfgMain configuration file. conf.d/*All other configuration goes here!

Configuration files continued Under conf.d/* (sample only) contacts_nagios3.cfgusers and groups generic-host_nagios2.cfgdefault host template‏ generic-service_nagios2.cfg default service template hostgroups_nagios2.cfggroups of nodes services_nagios2.cfgwhat services to check timeperiods_nagios2.cfgwhen to check and who to notifiy

Configuration files continued Under conf.d some other possible configfiles: host-gateway.cfgDefault route definition extinfo.cfgAdditional node information servicegroups.cfig Groups of nodes and services localhost.cfgDefine the Nagios server itself pcs.cfgSample definition of PCs (hosts) switches.cfgDefinitions of switches (hosts) routers.cfgDefinitions of routers (hosts)

Pre-installed plugins in Ubuntu check_bgpstatecheck_hpjdcheck_mailqcheck_overcr check_ssmtpcheck_breezecheck_httpcheck_mrtg check_pgsql check_swapcheck_by_sshcheck_icmp check_mrtgtrafcheck_pingcheck_tcpcheck_clamd check_ide_smartcheck_mysqlcheck_popcheck_time check_cluster check_ifoperstatus check_mysql_query check_procscheck_udpcheck_dhcp check_ifstatus check_nagios check_radius check_upscheck_dig check_imapcheck_nntp check_realcheck_users check_diskcheck_ircd check_nntps check_rpc check_wavecheck_disk_smb check_jabber check_nt check_sensorscheck_dns check_ldap check_ntp check_spop check_simap check_dummy check_ldaps check_ntp_peer check_smtpcheck_file_agecheck_linux_raid check_ntp_time check_snmp check_flexlm check_load check_nwstat

Nodes and services configuration Based on templates  This saves lots of time avoiding repetition  Similar to Object Oriented programming Create default templates with default parameters for a:  generic node  generic service  generic contact

Generic node template define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options d,r contact_groups nobody register 0 } define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options d,r contact_groups nobody register 0 }

Individual node configuration define host{ use generic-host host_name switch1 alias Core_switches address parents router1 contact_groups switch_group } define host{ use generic-host host_name switch1 alias Core_switches address parents router1 contact_groups switch_group }

Generic service configuration define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 notification_interval 60 notification_period 24x7 notification_options c,r register 0 } define service{ name generic-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 notification_interval 60 notification_period 24x7 notification_options c,r register 0 }

Individual service configuration define service{ host_name switch1 use generic-service service_description PING check_command check-host-alive max_check_attempts 5 normal_check_interval 5 notification_options c,r,f contact_groups switch-group } define service{ host_name switch1 use generic-service service_description PING check_command check-host-alive max_check_attempts 5 normal_check_interval 5 notification_options c,r,f contact_groups switch-group }

Beeper and sms messages It's important to integrate Nagios with something available outside of work  Problems occur after hours... (unfair, but true) A critical item to remember: an SMS or message system should be independent from your network.  You can utilize a modem and a telephone line  Packages like sendpage, qpage or gnokii can help.

References Nagios web site Nagios plugins site Nagios System and Network Monitoring, by Wolfgang Barth. Good book about Nagios. Unofficial Nagios plugin site A Debian tutorial on Nagios Commercial Nagios support