nagios-plugin-mongodb icon indicating copy to clipboard operation
nagios-plugin-mongodb copied to clipboard

Fix missing return and Mongo3 support for index_miss_ratio option

Open olivierHa opened this issue 9 years ago • 0 comments

Hello,

In Mongo3, the server status output no longer includes the workingSet, indexCounters, and recordStats sections.

So the index_miss_ratio function is broken.

See : http://docs.mongodb.org/manual/reference/command/serverStatus/#output

This patch disable this action when using mongo3 (similar to the lock action) and fix the return code.

Olivier

olivierHa avatar Jul 03 '15 11:07 olivierHa