Open
/etc/nagios/objects/hadoop-hostgroups.cfg
with a text editor.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
Parameter Description @NAME@
The host group name
@ALIAS@
The host group alias
@MEMBERS@
A comma-separated list of hosts in the group
The following table lists the core and monitoring host groups:
Table 22.2. Core and Monitoring Hosts
Service Component Name Alias Members 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
The following table lists the ecosystem project host groups:
Table 22.3. Ecosystem Hosts
Service Component Name Alias Members 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