Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work python script #1

Open
OSidorenkov opened this issue May 17, 2017 · 4 comments
Open

Don't work python script #1

OSidorenkov opened this issue May 17, 2017 · 4 comments

Comments

@OSidorenkov
Copy link

Traceback (most recent call last): File "/usr/local/bin/zabbix-mongodb.py", line 155, in <module> MongoDB.getServerStatusMetrics() File "/usr/local/bin/zabbix-mongodb.py", line 99, in getServerStatusMetrics self.addMetrics('mongodb.backgroundFlushing.flushes', ss['backgroundFlushing']['flushes']) KeyError: 'backgroundFlushing'

I have this error when execute /usr/local/bin/zabbix-mongodb.py

@OSidorenkov
Copy link
Author

mongod --version
db version v3.4.2

@darkschneider16
Copy link

That metric is no longer supported in version 3.4 by default as the storage engine is changed in favor of WiredTiger.

I've deleted these lines in python file:
#self.addMetrics('mongodb.backgroundFlushing.flushes', ss['backgroundFlushing']['flushes'])
#self.addMetrics('mongodb.backgroundFlushing.total_ms', ss['backgroundFlushing']['total_ms'])
#self.addMetrics('mongodb.heap.size', ss['extra_info']['heap_usage_bytes'])

When i've got time i'll send the developer a patch to fix the error and obtain those data from the right place.

@OSidorenkov
Copy link
Author

@darkschneider16 Thank you very match! It works for me now!

@mehrdad02121
Copy link

when i run ./mongodb-stats.sh , i have error " Permission denied"
user access is root
i dont know why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants