The Industry Standard In IT Infrastructure 
Monitoring
Who are using Nagios
Agenda 
• What is Nagios 
• What can you do with Nagios 
• Features 
• Basic 
o Architecture 
o Terminology 
• Monitoring 
• State Types 
• Active / Passive Checks 
• Reports
What is Nagios Core 
Open Source system and network monitoring 
application
With Nagios you can 
• Monitor your entire IT infrastructure 
• Spot problems before they occur 
• Know immediately when problems arise 
• Share availability data with stakeholders 
• Detect security breaches 
• Plan and budget for IT upgrades 
• Reduce downtime and business losses
Features 
• Monitoring of network services 
• SMTP 
• POP3 
• HTTP 
• PING and more 
• Monitoring of host resources 
• Processor load 
• Disk usage and more 
• Simple plugin design that allows users to easily develop their own 
service checks 
• Parallelized service checks
Features 
• Ability to define network host hierarchy/groups 
• Allowing detection of and distinction between hosts that are down 
and those that are unreachable 
• Contact notifications when service or host problems occur and get 
resolved via 
• Email 
• Pager 
• or user-defined methods 
• Ability to define event handlers to be run during service or host 
events for proactive problem resolution
Features 
• Automatic log file rotation 
• Support for implementing redundant monitoring hosts 
• Optional web interface for viewing 
• Current network status 
• Notification 
• Problem history 
• Log file and more
Basics
Basics
Basics
Basics
Basics
Basics 
Definitions 
• Host 
• Service 
• Contacts 
• Commands 
• TimePeriod 
• Eventhandlers
Basics 
Host 
Defines a physical server, workstation, device, etc. that resides on your 
network.
Basics 
Host 
define host{ 
host_name remotehost 
alias some Remote Host 
address 192.168.1.50 
contacts admin 
max_check_attempts 3 
check_period 24x7 
notification_interval 60 
notification_period 24x7 
}
Basics 
Service 
• Its a service that runs on the host. 
• Actual service on the host like POP, SMTP, HTTP, etc.) 
• Metric associated with the host (response to a ping, number of 
logged in users, free disk space, etc.
Basics 
Service
Basics 
Service 
define service { 
host_name linux-server 
service_description check-disk-sda1 
check_command check-disk!/dev/sda1 
max_check_attempts 5 
check_interval 5 
retry_interval 3 
check_period 24x7 
notification_interval 30 
notification_period 24x7 
notification_options w,c,r 
contact_groups admins 
}
Basics 
Contacts 
Identify someone who should be contacted in the event of a problem. 
define contact{ 
contact_name admin 
alias admin 
host_notifications_enabled 1 
service_notifications_enabled 1 
service_notification_period 24x7 
host_notification_period 24x7 
service_notification_options w,u,c,r 
host_notification_options d,u,r 
service_notification_commands notify-by-email 
host_notification_commands host-notify-by-email 
email admin@organisation.com 
address1 abc.def@organisation.com 
}
Basics 
Commands 
define command{ 
name check_http 
command_name check_http 
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ 
} 
define host { 
.. 
address 192.168.1.50 
.. 
} 
define service { 
.. 
check_command check-disk!/dev/sda1 
.. 
}
Basics 
Time Period 
Valid times for notifications and service checks. 
define timeperiod{ 
timeperiod_name nonworkhours 
alias Non-Work Hours 
sunday 00:00-24:00 week 
monday 00:00-09:00,17:00-24:00 
tuesday 00:00-09:00,17:00-24:00 
wednesday 00:00-09:00,17:00-24:00 
thursday 00:00-09:00,17:00-24:00 
friday 00:00-09:00,17:00-24:00 
saturday 00:00-24:00 
}
Event Handlers 
Event handlers are optional system commands (scripts or executables) 
that are run whenever a host or service state change occurs. 
• Restarting a failed service 
• Entering a trouble ticket into a helpdesk system 
• Logging event information to a database 
• Cycling power on a host
Event Handlers 
Event handlers are executed when a service or host: 
• Is in a SOFT problem state 
• Initially goes into a HARD problem state 
• Initially recovers from a SOFT or HARD problem state 
define service { 
.. 
event_handler command_name 
event_handler_enabled [0/1] 
.. 
}
Basics 
Other Blocks 
• contactgroup 
• servicegroup 
• servicedependency 
• serviceescalation 
• serviceextinfo 
• hostdependency 
• hostescalation 
• hostextinfo
Monitoring Services 
Nagios can be used to monitor Public and Private Services 
• Private Services 
• CPU load 
• Memory usage 
• Disk usage 
• Logged in users 
• Running processes 
• Publicly available services that are provided by Linux servers 
• HTTP 
• FTP 
• SSH 
• SMTP
Monitoring Private Services 
• Plugins/Addons are mostly used for monitoring private services. 
• NRPE addon is installed on the target servers (Nagios Remote Plugin 
Executor) 
• Its is an addon that allows you to execute plugins on remote 
Linux/Unix hosts
Monitoring Private Services 
• NCSA addon (Nagios Service Check Adapter)) 
• Allows you to send passive check results from remote Linux/Unix to 
the Nagios daemon running on the monitoring server. 
• This is very useful in distributed and redundant/failover monitoring 
setups.
Monitoring Public Services 
• Check plugins first @ Nagios Exchange 
• Walk through 
• Create host in file within cfg dir 
• Define Service for each process/service that needs to be 
monitored. 
• Service uses pre-defined/custom defined commands. 
• Define contacts who would receive notifications and take action.
State Types 
• Based on variable max_check_attempts 
• The SOFT state is logged, when 
• Number of checks haven’t completed yet 
• When a service or host recovers from a soft error. This is considered 
a soft recovery.
State Types 
• HARD state is logged, when 
• Number of checks have completed 
• When a host or service transitions from one hard error state to 
another error state (e.g. WARNING to CRITICAL). 
• ex. Running to Down 
• When a service check results in a non-OK state and its 
corresponding host is either DOWN or UNREACHABLE. 
• When a host or service recovers from a hard error state. This is 
considered to be a hard recovery. 
• Contacts are notified of the host or service problem or recovery.
Active / Passive Checks 
Active Checks 
● Initiated by the Nagios process 
● Ran on a regularly scheduled basis
Active / Passive Checks 
Passive Checks 
● Passive checks are initiated and performed 
by external applications/processes 
● Passive check results are submitted 
to Nagios for processing 
• Used for 
• Checks that are asynchronous in nature 
● Located behind a firewall and cannot be 
checked actively from the monitoring host
Nagios in Action 
Demo Time : http://nagioscore.demos.nagios.com/
Reports 
• Availability Report 
Report for uptime and services 
• Trends Report 
Graphical breakdown of of state of particular host, service.
Reports 
• Alert History Report 
Record of historical alerts
Reports 
• Alert Summary Report
Reports 
• Alert Histogram Report 
Frequency graph of host and service alerts
Reports 
• Notification Report 
Provides historical record of notifications sent to contacts
Summary 
• Infra monitoring 
• Anomaly Outage detection 
• Automatic Problem remedy 
• Schedule Downtime 
• Outage Alerts 
• Alert Escalations 
• Historical Reporting 
• Maintenance Planning
Advice for Beginners 
• Relax - it's going to take some time. 
• Use the quickstart instructions. 
• Read the documentation. 
• visiting the Nagios Support Forum at http://support.nagios. 
com/forum/.
Next Steps 
• Get your hands dirty 
• Get training 
Live / Self paced training 
• Get certified 
Nagios Certified Professional 
Nagios Certified Administrator 
• Use it to Monitor your infra.
References 
• Nagios Documentation 
• Nagios Online Demo 
• Slideshare 
• NRPE Blog
Thank You

More Related Content

PPTX
Ansible presentation
PPT
Nagios
PDF
Spnego configuration
PDF
Building infrastructure as code using Terraform - DevOps Krakow
PPTX
Prometheus design and philosophy
PDF
Automation with ansible
PPTX
The Elastic Stack as a SIEM
Ansible presentation
Nagios
Spnego configuration
Building infrastructure as code using Terraform - DevOps Krakow
Prometheus design and philosophy
Automation with ansible
The Elastic Stack as a SIEM

What's hot (20)

PDF
Auto Update(AUT) - HCL Notes
PDF
Zabbix Performance Tuning
PDF
Dataflow Management From Edge to Core with Apache NiFi
PDF
HTTP - The Other Face Of Domino
PDF
Bewährte Praktiken fßr HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
PPT
Compact, Compress, De-Duplicate (DAOS)
PDF
Apache Nifi Crash Course
PPTX
Prometheus 101
PDF
Red Hat Global File System (GFS)
PPTX
Zabbix
PPTX
Kubernetes fundamentals
PDF
Prometheus + Grafana = Awesome Monitoring
PDF
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
PDF
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
PPTX
High Availability Content Caching with NGINX
ODP
Linux host orchestration with Foreman, Puppet and Gitlab
PPTX
PowerShell-1
PPTX
Introduction to Zabbix - Company, Product, Services and Use Cases
 
ODP
Introduction to Nginx
PDF
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
Auto Update(AUT) - HCL Notes
Zabbix Performance Tuning
Dataflow Management From Edge to Core with Apache NiFi
HTTP - The Other Face Of Domino
Bewährte Praktiken fßr HCL Notes/Domino-Sicherheit. Teil 2: Der Domino-Server
Compact, Compress, De-Duplicate (DAOS)
Apache Nifi Crash Course
Prometheus 101
Red Hat Global File System (GFS)
Zabbix
Kubernetes fundamentals
Prometheus + Grafana = Awesome Monitoring
April, 2021 OpenNTF Webinar - Domino Administration Best Practices
KVM High Availability Regardless of Storage - Gabriel Brascher, VP of Apache ...
High Availability Content Caching with NGINX
Linux host orchestration with Foreman, Puppet and Gitlab
PowerShell-1
Introduction to Zabbix - Company, Product, Services and Use Cases
 
Introduction to Nginx
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
Ad

Viewers also liked (12)

PDF
Jenkins
PPT
Nagios Conference 2014 - Konstantin Benz - Monitoring Openstack The Relations...
 
KEY
Using Nagios with Chef
PDF
Janice Singh - Writing Custom Nagios Plugins
 
PDF
Sean Falzon - Nagios - Resilient Notifications
 
PDF
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
 
PDF
Dave Williams - Nagios Log Server - Practical Experience
 
PPTX
Nagios core vs. nagios xi presentation power point.pptx [diperbaiki]
PDF
Trevor McDonald - Nagios XI Under The Hood
 
PDF
Jesse Olson - Nagios Log Server Architecture Overview
 
PPTX
Nagios XI Best Practices
 
ODP
Monitoring with Nagios and Ganglia
Jenkins
Nagios Conference 2014 - Konstantin Benz - Monitoring Openstack The Relations...
 
Using Nagios with Chef
Janice Singh - Writing Custom Nagios Plugins
 
Sean Falzon - Nagios - Resilient Notifications
 
Marcus Rochelle - Landis+Gyr - Monitoring with Nagios Enterprise Edition
 
Dave Williams - Nagios Log Server - Practical Experience
 
Nagios core vs. nagios xi presentation power point.pptx [diperbaiki]
Trevor McDonald - Nagios XI Under The Hood
 
Jesse Olson - Nagios Log Server Architecture Overview
 
Nagios XI Best Practices
 
Monitoring with Nagios and Ganglia
Ad

Similar to Nagios, Getting Started. (20)

PPTX
NagiOs.pptxhjkgfddssddfccgghuikjhgvccvvhjj
PDF
Learning Nagios
PDF
Nagios 3
PPTX
Nagios Conference 2014 - Jim Prins - Passive Monitoring with Nagios
 
PDF
Nagios 3
 
ODP
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
 
PPT
Nagios En
ODP
Security framework
PDF
Proactive monitoring tools or services - Open Source
 
PDF
Storage managment using nagios
PPTX
Network Monitoring with Icinga
 
PPTX
Functionality, security and performance monitoring of web assets (e.g. Joomla...
PDF
Using Nagios to monitor your WO systems
PDF
Handout: 'Open Source Tools & Resources'
ODP
Monitoring at/with SUSE 2015
PPTX
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
 
ODP
Nagios Conference 2011 - Ethan Galstad - Keynote Presentation
 
DOCX
Fully Automated Nagios (FAN)
PDF
Have you been stalking your servers?
 
NagiOs.pptxhjkgfddssddfccgghuikjhgvccvvhjj
Learning Nagios
Nagios 3
Nagios Conference 2014 - Jim Prins - Passive Monitoring with Nagios
 
Nagios 3
 
Nagios Conference 2014 - Eric Mislivec - Getting Started With Nagios Core
 
Nagios En
Security framework
Proactive monitoring tools or services - Open Source
 
Storage managment using nagios
Network Monitoring with Icinga
 
Functionality, security and performance monitoring of web assets (e.g. Joomla...
Using Nagios to monitor your WO systems
Handout: 'Open Source Tools & Resources'
Monitoring at/with SUSE 2015
Nagios Conference 2014 - Frank Pantaleo - Nagios Monitoring of Netezza Databases
 
Nagios Conference 2011 - Ethan Galstad - Keynote Presentation
 
Fully Automated Nagios (FAN)
Have you been stalking your servers?
 

Recently uploaded (20)

PDF
Streamlining Project Management in Microsoft Project, Planner, and Teams with...
PDF
Odoo Construction Management System by CandidRoot
PPTX
SAP Business AI_L1 Overview_EXTERNAL.pptx
PPTX
Independent Consultants’ Biggest Challenges in ERP Projects – and How Apagen ...
PPTX
Post-Migration Optimization Playbook: Getting the Most Out of Your New Adobe ...
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
PDF
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
 
PDF
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
PPTX
Human-Computer Interaction for Lecture 2
PPTX
Swiggy API Scraping A Comprehensive Guide on Data Sets and Applications.pptx
PPTX
Folder Lock 10.1.9 Crack With Serial Key
PDF
Cloud Native Aachen Meetup - Aug 21, 2025
PDF
Sanket Mhaiskar Resume - Senior Software Engineer (Backend, AI)
PDF
infoteam HELLAS company profile 2025 presentation
PPTX
Lesson-3-Operation-System-Support.pptx-I
PDF
Mobile App for Guard Tour and Reporting.pdf
PPTX
Bandicam Screen Recorder 8.2.1 Build 2529 Crack
PDF
Module 1 - Introduction to Generative AI.pdf
PPTX
Why 2025 Is the Best Year to Hire Software Developers in India
PDF
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
Streamlining Project Management in Microsoft Project, Planner, and Teams with...
Odoo Construction Management System by CandidRoot
SAP Business AI_L1 Overview_EXTERNAL.pptx
Independent Consultants’ Biggest Challenges in ERP Projects – and How Apagen ...
Post-Migration Optimization Playbook: Getting the Most Out of Your New Adobe ...
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
 
WhatsApp Chatbots The Key to Scalable Customer Support.pdf
Human-Computer Interaction for Lecture 2
Swiggy API Scraping A Comprehensive Guide on Data Sets and Applications.pptx
Folder Lock 10.1.9 Crack With Serial Key
Cloud Native Aachen Meetup - Aug 21, 2025
Sanket Mhaiskar Resume - Senior Software Engineer (Backend, AI)
infoteam HELLAS company profile 2025 presentation
Lesson-3-Operation-System-Support.pptx-I
Mobile App for Guard Tour and Reporting.pdf
Bandicam Screen Recorder 8.2.1 Build 2529 Crack
Module 1 - Introduction to Generative AI.pdf
Why 2025 Is the Best Year to Hire Software Developers in India
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...

Nagios, Getting Started.

  • 1. The Industry Standard In IT Infrastructure Monitoring
  • 2. Who are using Nagios
  • 3. Agenda • What is Nagios • What can you do with Nagios • Features • Basic o Architecture o Terminology • Monitoring • State Types • Active / Passive Checks • Reports
  • 4. What is Nagios Core Open Source system and network monitoring application
  • 5. With Nagios you can • Monitor your entire IT infrastructure • Spot problems before they occur • Know immediately when problems arise • Share availability data with stakeholders • Detect security breaches • Plan and budget for IT upgrades • Reduce downtime and business losses
  • 6. Features • Monitoring of network services • SMTP • POP3 • HTTP • PING and more • Monitoring of host resources • Processor load • Disk usage and more • Simple plugin design that allows users to easily develop their own service checks • Parallelized service checks
  • 7. Features • Ability to define network host hierarchy/groups • Allowing detection of and distinction between hosts that are down and those that are unreachable • Contact notifications when service or host problems occur and get resolved via • Email • Pager • or user-defined methods • Ability to define event handlers to be run during service or host events for proactive problem resolution
  • 8. Features • Automatic log file rotation • Support for implementing redundant monitoring hosts • Optional web interface for viewing • Current network status • Notification • Problem history • Log file and more
  • 14. Basics Definitions • Host • Service • Contacts • Commands • TimePeriod • Eventhandlers
  • 15. Basics Host Defines a physical server, workstation, device, etc. that resides on your network.
  • 16. Basics Host define host{ host_name remotehost alias some Remote Host address 192.168.1.50 contacts admin max_check_attempts 3 check_period 24x7 notification_interval 60 notification_period 24x7 }
  • 17. Basics Service • Its a service that runs on the host. • Actual service on the host like POP, SMTP, HTTP, etc.) • Metric associated with the host (response to a ping, number of logged in users, free disk space, etc.
  • 19. Basics Service define service { host_name linux-server service_description check-disk-sda1 check_command check-disk!/dev/sda1 max_check_attempts 5 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups admins }
  • 20. Basics Contacts Identify someone who should be contacted in the event of a problem. define contact{ contact_name admin alias admin host_notifications_enabled 1 service_notifications_enabled 1 service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email [email protected] address1 [email protected] }
  • 21. Basics Commands define command{ name check_http command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } define host { .. address 192.168.1.50 .. } define service { .. check_command check-disk!/dev/sda1 .. }
  • 22. Basics Time Period Valid times for notifications and service checks. define timeperiod{ timeperiod_name nonworkhours alias Non-Work Hours sunday 00:00-24:00 week monday 00:00-09:00,17:00-24:00 tuesday 00:00-09:00,17:00-24:00 wednesday 00:00-09:00,17:00-24:00 thursday 00:00-09:00,17:00-24:00 friday 00:00-09:00,17:00-24:00 saturday 00:00-24:00 }
  • 23. Event Handlers Event handlers are optional system commands (scripts or executables) that are run whenever a host or service state change occurs. • Restarting a failed service • Entering a trouble ticket into a helpdesk system • Logging event information to a database • Cycling power on a host
  • 24. Event Handlers Event handlers are executed when a service or host: • Is in a SOFT problem state • Initially goes into a HARD problem state • Initially recovers from a SOFT or HARD problem state define service { .. event_handler command_name event_handler_enabled [0/1] .. }
  • 25. Basics Other Blocks • contactgroup • servicegroup • servicedependency • serviceescalation • serviceextinfo • hostdependency • hostescalation • hostextinfo
  • 26. Monitoring Services Nagios can be used to monitor Public and Private Services • Private Services • CPU load • Memory usage • Disk usage • Logged in users • Running processes • Publicly available services that are provided by Linux servers • HTTP • FTP • SSH • SMTP
  • 27. Monitoring Private Services • Plugins/Addons are mostly used for monitoring private services. • NRPE addon is installed on the target servers (Nagios Remote Plugin Executor) • Its is an addon that allows you to execute plugins on remote Linux/Unix hosts
  • 28. Monitoring Private Services • NCSA addon (Nagios Service Check Adapter)) • Allows you to send passive check results from remote Linux/Unix to the Nagios daemon running on the monitoring server. • This is very useful in distributed and redundant/failover monitoring setups.
  • 29. Monitoring Public Services • Check plugins first @ Nagios Exchange • Walk through • Create host in file within cfg dir • Define Service for each process/service that needs to be monitored. • Service uses pre-defined/custom defined commands. • Define contacts who would receive notifications and take action.
  • 30. State Types • Based on variable max_check_attempts • The SOFT state is logged, when • Number of checks haven’t completed yet • When a service or host recovers from a soft error. This is considered a soft recovery.
  • 31. State Types • HARD state is logged, when • Number of checks have completed • When a host or service transitions from one hard error state to another error state (e.g. WARNING to CRITICAL). • ex. Running to Down • When a service check results in a non-OK state and its corresponding host is either DOWN or UNREACHABLE. • When a host or service recovers from a hard error state. This is considered to be a hard recovery. • Contacts are notified of the host or service problem or recovery.
  • 32. Active / Passive Checks Active Checks ● Initiated by the Nagios process ● Ran on a regularly scheduled basis
  • 33. Active / Passive Checks Passive Checks ● Passive checks are initiated and performed by external applications/processes ● Passive check results are submitted to Nagios for processing • Used for • Checks that are asynchronous in nature ● Located behind a firewall and cannot be checked actively from the monitoring host
  • 34. Nagios in Action Demo Time : http://nagioscore.demos.nagios.com/
  • 35. Reports • Availability Report Report for uptime and services • Trends Report Graphical breakdown of of state of particular host, service.
  • 36. Reports • Alert History Report Record of historical alerts
  • 37. Reports • Alert Summary Report
  • 38. Reports • Alert Histogram Report Frequency graph of host and service alerts
  • 39. Reports • Notification Report Provides historical record of notifications sent to contacts
  • 40. Summary • Infra monitoring • Anomaly Outage detection • Automatic Problem remedy • Schedule Downtime • Outage Alerts • Alert Escalations • Historical Reporting • Maintenance Planning
  • 41. Advice for Beginners • Relax - it's going to take some time. • Use the quickstart instructions. • Read the documentation. • visiting the Nagios Support Forum at http://support.nagios. com/forum/.
  • 42. Next Steps • Get your hands dirty • Get training Live / Self paced training • Get certified Nagios Certified Professional Nagios Certified Administrator • Use it to Monitor your infra.
  • 43. References • Nagios Documentation • Nagios Online Demo • Slideshare • NRPE Blog