2.8. Set Host Groups

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

  2. Create host groups based on all the hosts and services you have installed in your cluster. Each host group entry should follow this format:

    define hostgroup {
           hostgroup_name  @NAME@
           alias           @ALIAS@
           members         @MEMBERS@
       }

    Where

     

    Table 22.1. Host Group Parameters

    ParameterDescription

    @NAME@   

    The host group name

    @ALIAS@

    The host group alias

    @MEMBERS@

    A comma-separated list of hosts in the group


  3. The following table lists the core and monitoring host groups:

     

    Table 22.2. Core and Monitoring Hosts

    ServiceComponentNameAliasMembers

    All servers in the cluster

     

    all-servers

    All Servers

    List all servers in the cluster

    HDFS

    NameNode

    namenode

    namenode

    The NameNode host

    HDFS

    SecondaryNameNode

    snamenode

    snamenode

    The Secondary NameNode host

    MapReduce

    JobTracker

    jobtracker

    jobtracker

    The Job Tracker host

    HDFS, MapReduce

    Slaves

    slaves

    slaves

    List all hosts running DataNode and TaskTrackers

    Nagios

     

    nagios-server

    nagios-server

    The Nagios server host

    Ganglia

     

    ganglia-server

    ganglia-server

    The Ganglia server host


  4. The following table lists the ecosystem project host groups:

     

    Table 22.3. Ecosystem Hosts

    ServiceComponentNameAliasMembers

    HBase

    Master

    hbasemaster

    hbasemaster

    List the master server

    HBase

    Region

    regions-servers

    region-servers

    List all region servers

    ZooKeeper

     

    zookeeper-servers

    zookeeper-servers

    List all ZooKeeper servers

    Oozie

     

    oozie-server

    oozie-server

    The Oozie server

    Hive

     

    hiveserver

    hiverserver

    The Hive metastore server

    WebHCat

     

    webhcat-server

    webhcat-server

    The WebHCat server

    Templeton

     

    templeton-server

    templeton-server

    The Templeton server



loading table of contents...