Cover by Wolfgang Barth

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

2.3 Defining the Machines to Be Monitored, with host

The host object is the central command post on which all host and service checks are based. It defines the machine to be monitored. The parameters printed in bold must be specified in all cases:

# -- /etc/nagios/mysite/hosts.cfg
define host{
   host_name                   linux01
   hostgroups                      linux-servers
   alias(*)           Linux File Server
   address                     192.168.1.9
   check_command                   check-host-alive
   max_check_attempts          3
   check_period                24×7
   contact_groups              localadmins
   notification_interval       120
   notification_period         24×7
   notification_options        d,u,r,f,s(*)
   parents                         router01
}
host_name

This parameter specifies the host name with which Nagios addresses the machine in services, host groups, and other objects. Only the special characters ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required