alfredo
alfredo

Reputation: 971

Munin Mongodb Plugin Not Showing. . .?

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.

Upvotes: 3

Views: 2886

Answers (3)

Leon
Leon

Reputation: 859

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.

Upvotes: 1

fun_vit
fun_vit

Reputation: 384

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

Upvotes: 1

alfredo
alfredo

Reputation: 971

alt text

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.

Upvotes: 3

Related Questions