As discussed in earlier chapters, Nagios is a monitoring platform and works very well for the Hadoop monitoring needs. Let's see how to configure Nagios for Hadoop service checks.
On the Nagios server, called mnode
, we need to set up service definitions, command definitions, and the host definition. All these plugins are available at the Nagios website and can be downloaded from there.
JobTracker health check: This is used to check the JobTracker status:
define command{ command_name check_jobtracker_health command_line $PATH$/check_hadoop_mapreduce_nodes.pl -H $HOSTADDRESS$ -P $PORT$ } define host { use hadoop-server host_name jt1 alias Remote Host address 192.168.0.1 contact_groups admins } Service definition: define service { use generic-service service_description jobtracker contact_groups admins check_command check_jobtracker_health }