Munin Mongodb Plugin Not Showing. . .?

回眸只為那壹抹淺笑 提交于 2019-12-10 15:17:13

问题


I have installed munin and munin-node on my monitoring server and installed munin-node on my mongodb server, I have set them both up and all is working great. But, the mongodb plugins aren't showing on my monitoring server. I see the node listed and "Disk, Network, Processes, System", but not the mongo stuff. If I execute one of the plugins directly on the mongo server "python /usr/share/munin/plugins/mongo_btree" it returns output, but nothing shows on the monitoring server.


回答1:


Upon further inspection, the "munin" user was receiveing errors when trying to access the simplejson module. This was cause due to the munin user using an older pre 2.6 instance of python.

Fixed by adding the correct version to munin's bash_profile.




回答2:


not worked for me... no errors on mongo_ops call. but no charts at all...

UPDATE:

i found how-to!

copy mongo_* plugins to /usr/share/munin/plugins

make link to /etc/munin/plugins

check node config by munin-node-configure:

mongo_btree                | yes  |
mongo_conn                 | yes  |
mongo_lock                 | yes  |
mongo_mem                  | yes  |
mongo_ops                  | yes  |

restart munin-node:

sudo /etc/init.d/munin-node restart



回答3:


The MongoDB munin scripts are using the default python env but they are in fact python2 scripts. If

python --version

Says something like Python 3.x.x, then you need to change the first line of the scripts to

#!/usr/bin/python2

Or wherever your python2 is.



来源:https://stackoverflow.com/questions/3947441/munin-mongodb-plugin-not-showing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!