Open
/etc/nagios/objects/hadoop-services.cfg
with a text editor.This file contains service definitions for the following services: Ganglia, HBase (Master and Region), ZooKeeper, Hive, WebHCat, and Oozie
Remove any services definitions for services you have not installed.
Replace the parameter
@NAGIOS_BIN@
and@STATUS_DAT@
parameters based on the operating system.For RHEL and CentOS
@STATUS_DAT@ = /var/nagios/status.dat @NAGIOS_BIN@ = /usr/bin/nagios
For SLES
@STATUS_DAT@ = /var/lib/nagios/status.dat @NAGIOS_BIN@ = /usr/sbin/nagios
If you have installed Hive or Oozie services, replace the parameter
@JAVA_HOME@
with the path to the Java home. For example,/usr/java/default.