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)
Does it encompass all the metric check?
so that i can call the nrpe check like,
sudo -u nrpe /usr/lib64/nagios/plugins/aerospike/citrusleaf_stats.py -s ‘client_connections’
and believe that citrusleaf_stats.py will throw out the right exit status or do i need to do something more?