omni-lchen / zabbix-mongodb

MIT License
58 stars 73 forks source link

cursor error with mongodb-stats.sh #3

Open tandar17 opened 7 years ago

tandar17 commented 7 years ago

./mongodb-stats.sh

Traceback (most recent call last): File "/usr/local/bin/zabbix-mongodb.py", line 208, in MongoDB.getOplog() File "/usr/local/bin/zabbix-mongodb.py", line 93, in getOplog op_fst = (op_first.next())['ts'].time File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1142, in next raise StopIteration StopIteration 1

tandar17 commented 7 years ago

Solved the issue:

was using a stand alone MangoDB server, so there was no Oplog. Had to enable a replication set.

dahlinPL commented 6 years ago

Hi, this issue should be solved in my last commit.

Regards Marcin