I am monitoring my mongodb replicaset with this plugin and encountered the following error:
CRITICAL - General MongoDB Error: can't set attribute
I am running the command as follows:
/usr/lib/nagios/plugins/check_mongodb -A replication_lag -W 5 -C 10 -M 3 -u {user} --pass={pass}
I have tested the plugin on a set without authentication and everything works fine.