updated description and committed old todo on quorum field
b5b7573f
Hari Sekhon
committed
1 changed file
check_hadoop_wandisco_node_status.pl
/check_hadoop_wandisco_node_status.pl+3
/check_hadoop_wandisco_node_status.pl
Add comment 13
Add comment 14 $DESCRIPTION = "Nagios Plugin to check the status of a given WANdisco Non-Stop Hadoop node via DConE REST API
Add comment 15
Add comment 16 Plus  Checks node state is up, not stopped, and displays the secs since the last status change.
Add comment 17 Plus  
Add comment 16 18 Written and tested on Hortonworks HDP 2.1 and WANdisco Non-Stop Hadoop 1.9.8";
Add comment 17 19
Add comment 18 20 $VERSION = "0.1";
Add comment 92 94 $isUp = ( $isUp and $isUp eq "true" ? "true" : "FALSE" );
Add comment 93 95 $isStopped = ( $isStopped and $isStopped ne "false" ? "TRUE" : "false" );
Add comment 94 96 $isLocal = ( $isLocal and $isLocal eq "true" ? "true" : "false" );
Add comment 97 Plus  # TODO: add quorum field
Add comment 95 98
Add comment 96 99 if ($isStopped eq "true" or $isUp ne "true"){
Add comment 97 100 critical;