The code states: Comparing the Aerospike value with the warning/critical passed values. Default comparison is if the Aerospike value is greater than the warning/critical value Stats with “pct” in them are checked to see if the Aerospike value is less than the warning/critical value.
However percent stats are not accounted for in the code. Has this feature not been implemented?
The test
# ./aerospike_nagios.py -h e-nsmem-03 -p 3000 -n global_addition_set -s free-pct-disk -w 20 -c 15
Aerospike Stats - free-pct-disk=94|free-pct-disk=94.0%;20;15
# echo $?
2
The Question How do i mod the code to get this working as expected for pct stats?