I am confused on how to make check nagios check work correctly. I don’t see any exit code set for each metric. Should i be comparing the ouptut of nagios check to see whether we are within the threshold or will nagios plugin throw the right exit status ?
By reading the code, I don’t see any proper exit status (STATE_CRITICAL) being thrown out except in
r = citrusleaf.citrusleaf_info(arg_host, arg_port, arg_value)
if r == -1:
print “request to “,arg_host,”:”,arg_port," returned error"
# return STATE_CRITICAL
sys.exit(2)
With this tool the command should be
sudo -u nrpe /usr/lib64/nagios/plugins/aerospike/aerospike_nagios.py -s 'client_connections' -w 14000 -c 14500
The current Nagios plugin does not support detecting low values. If I were monitoring this particular stat in production I would be interested in whether we are approaching proto-fd-max or if we are approaching 0 connections and we never expect that to be the case. This plugin can check the former but not the latter.