2.7. Set Hosts

  1. Open /etc/nagios/objects/hadoop-hosts.cfg with a text editor.

  2. Create a "define host { … }" entry for each host in your cluster using the following format:

    define host {
           alias @HOST@
           host_name @HOST@
           use linux-server
           address @HOST@
           check_interval 0.25
           retry_interval 0.25
           max_check_attempts 4
           notifications_enabled 1
           first_notification_delay 0 # Send notification soon after
                                       change in the hard state
           notification_interval 0    # Send the notification once
           notification_options       d,u,r
      }
  3. Replace the "@HOST@" with the hostname.


loading table of contents...