m-barthelemy / zabbix-mongo-old

[BROKEN] Zabbix agent (3.0) native plugin for Mongodb monitoring
11 stars 2 forks source link

zabbix cant connect to mongo via zabbix-mongo plugin #5

Open TheFatal opened 8 years ago

TheFatal commented 8 years ago

hey, im trying to monitor my mongo instance by zabbix-mongo plugin

i have installed /opt/zabbix/zbx_mongo.so and include it in my zabbix_agentd.conf

LoadModulePath=/opt/zabbix
LoadModule=zbx_mongo.so

I restarted zabbix_agentd n sow

[zbx-mongo] Version 0.3 loaded using runtime go1.6.
loaded modules: zbx_mongo.so

then i tried to get information via zabbix get

zabbix_get -s 192.168.99.111 -p 10050 -k 'mongo.run[mongodb://127.0.0.1:27018/local,serverStatus,"{\"serverStatus\":1}",/connections/totalCreated]'

and have this massage

[zbx-mongo] Opening session with DB mongodb://127.0.0.1:27018/local
[zbx-mongo] Dialing server, timeout 2s

what have I done wrong ?

btw

mongo mongodb://127.0.0.1:27018/local

works fine

4fthawaiian commented 8 years ago

seeing the same exact thing here - any thoughts, @m-barthelemy ?