You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
1. remove unneeded socket and json import
2. change oplog query to avoid stopIteration issue (issue omni-lchen#3)
3. check if storage engine is wiredTiger before try to get metrics to avoid error
4. unified database connection method
./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
The text was updated successfully, but these errors were encountered: