define command {
       command_name	check_root_disk
       command_line	$USER1$/check_nrpe -u -t 240 -H $HOSTADDRESS$ -c "hadoop_check_root_disk"
}

define command {
       command_name	check_data_disk
       command_line	$USER1$/check_nrpe -u -t 240 -H $HOSTADDRESS$ -c "hadoop_check_data_disk"
}

define command {
       command_name	hadoop_check_hbase
       command_line	$USER1$/check_nrpe -u -t {{ hbase_check_timeout }} -H $HOSTADDRESS$ -c "hadoop_check_hbase"
}

define command {
       command_name	hadoop_check_hbase_status
       command_line	$USER1$/check_nrpe -u -t {{ hbase_check_timeout }} -H $HOSTADDRESS$ -c "hadoop_check_hbase_status"
}

define command {
       command_name	hadoop_check_tasktracker
       command_line	$USER1$/check_nrpe -u -t 240 -H $HOSTADDRESS$ -c "hadoop_check_tasktracker"
}

define command {
       command_name	hadoop_check_datanode
       command_line	$USER1$/check_nrpe -u -t 240 -H $HOSTADDRESS$ -c "hadoop_check_datanode"
}

#
# Commands that don't need nrpe
#
define command {
       command_name	check_webui
       command_line	/usr/lib/nagios/plugins/hadoop/check_webui '$ARG1$' $HOSTADDRESS$
}

define command {
       command_name	check_hdfs_blocks
       command_line	/usr/lib/nagios/plugins/hadoop/check_hdfs_blocks.php -h $HOSTADDRESS$ -p '$ARG1$' -w '$ARG2$' -c '$ARG3$' 
}

define command {
       command_name	check_hdfs_capacity
       command_line	/usr/lib/nagios/plugins/hadoop/check_hdfs_capacity.php -h $HOSTADDRESS$ -p '$ARG1$' -w '$ARG2$' -c '$ARG3$' 
}

define command {
       command_name	check_rpcq_latency
       command_line	/usr/lib/nagios/plugins/hadoop/check_rpcq_latency.php -h $HOSTADDRESS$ -p '$ARG1$' -n '$ARG2$' -w '$ARG3$' -c '$ARG4$' 
}

define command {
       command_name	check_name_dir_status
       command_line	/usr/lib/nagios/plugins/hadoop/check_name_dir_status.php -h $HOSTADDRESS$ -p '$ARG1$'
}

define command {
       command_name	check_zookeeper
       command_line	/usr/lib/nagios/plugins/hadoop/check_zookeeper -o nagios -s "$HOSTADDRESS$:{{ zookeeper_client_port}}" -k '$ARG1$' -w '$ARG2$' -c '$ARG3$'
}

define command {
       command_name	check_hbase_thrift
       command_line	/usr/lib/nagios/plugins/hadoop/check_hbase_thrift $HOSTADDRESS$ '$ARG1$'
}

define command {
       command_name	check_hadoop_http_service
       command_line	/usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -p '$ARG1$'
}

