Remove slave_ok flag and use db.read_preference instead for pymongo 2.1 or later.
Remove slave_ok flag and use db.read_preference instead for pymongo 2.1 or later.

a-yiorgos/nagios-plugin-mongodb,cookbooks/nd-nagios-plugin-mongodb,mzupan/nagios-plugin-mongodb,Elbandi/nagios-plugin-mongodb,alexp789/nagios-plugin-mongodb,MingjunZhao/Mapscape-Nagios-Mongo,hdeheer/nagios-plugin-mongodb,warrenpnz/nagios-plugin-mongodb,adrianlzt/nagios-plugin-mongodb