- Nagios - Discussion
- Nagios - Useful Resources
- Nagios - Quick Guide
- Nagios - Case Study
- Nagios - V Shell
- Nagios - NRPE
- Nagios - Add-ons/Plugins
- Nagios - Ports and Protocols
- Nagios - Checks and States
- Nagios - Commands
- Nagios - Hosts and Services
- Nagios - Applications
- Nagios - Features
- Nagios - Configuration
- Nagios - Installation
- Nagios - Products
- Nagios - Architecture
- Nagios - Overview
- Nagios - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Nagios - Hosts and Services
Nagios is the most popular tool which is used to monitor hosts and services running in your IT infrastructure. Hosts and service configurations are the building blocks of Nagios Core.
Host is just pke a computer; it can be a physical device or virtual.
Services are those which are used by Nagios to check something about a host.
You can create a host file inside the server directory of Nagios and mention the host and service definitions. For example −
sudo gedit /usr/local/nagios/etc/servers/ubuntu_host.cfg
# Ubuntu Host configuration file
define host { use pnux-server host_name ubuntu_host apas Ubuntu Host address 192.168.1.10 register 1 } define service { host_name ubuntu_host service_description PING check_command check_ping!100.0,20%!500.0,60% max_check_attempts 2 check_interval 2 retry_interval 2 check_period 24x7 check_freshness 1 contact_groups admins notification_interval 2 notification_period 24x7 notifications_enabled 1 register 1 }
The above definitions add a host called ubuntu_host and defines the services which will run on this host. When you restart the Nagios, this host will start getting monitored by Nagios and the specified services will run.
There are many more services in Nagios which can be used to monitor pretty much anything on the running host.
Advertisements