Open
/etc/nagios/nagios.cfgwith a text editor.In the section
OBJECT CONFIGURATION FILE(S), add the following:# Definitions for hadoop servers cfg_file=/etc/nagios/objects/hadoop-commands.cfg cfg_file=/etc/nagios/objects/hadoop-hosts.cfg cfg_file=/etc/nagios/objects/hadoop-hostgroups.cfg cfg_file=/etc/nagios/objects/hadoop-services.cfg cfg_file=/etc/nagios/objects/hadoop-servicegroups.cfg
Change the
command-filedirective to/var/nagios/rw/nagios.cmd:command_file=/var/nagios/rw/nagios.cmd

