command[hadoop_check_root_disk]=/usr/lib/nagios/plugins/check_disk -w {{ root_disk_warn }} -c {{ root_disk_crit }} -p {{ root_disk }}
command[hadoop_check_data_disk]=/usr/lib/nagios/plugins/check_disk -w {{ data_disk_warn }} -c {{ data_disk_crit }} -p {{ data_disk }}

# HBase DB status
command[hadoop_check_hbase]=/usr/lib/nagios/plugins/hadoop/check_hbase -u {{ hbase_check_user }}
# HBase status
command[hadoop_check_hbase_status]=/usr/lib/nagios/plugins/hadoop/check_hbase_status {{ hbase_user }}

# mapreduce tasktrackers status
command[hadoop_check_tasktracker]=/usr/lib/nagios/plugins/hadoop/check_hadoop_tasktracker {{ worker_nodes_num }} {{ worker_nodes_num }}
# HDFS datanodes status
command[hadoop_check_datanode]=/usr/lib/nagios/plugins/hadoop/check_hadoop_datanode {{ hdfs_namenode_1_hostname }} {{ worker_nodes_num }} {{ worker_nodes_num }}

# Restart the tasktracker when it get killed
command[global_restart_hadoop-0.20-mapreduce-tasktracker]=/usr/bin/sudo /usr/sbin/service hadoop-0.20-mapreduce-tasktracker restart
