Fashma / mikoomi

Automatically exported from code.google.com/p/mikoomi
0 stars 0 forks source link

Incorect parameters in mongo template #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

As said at the bottom of https://code.google.com/p/mikoomi/wiki/03:

======8<========
Greetings! Thank you very much for your work on this plugin set. It looks 
exceedingly useful for those of us running Zabbix and MongoDB. 1 thing to note, 
however, is that the macro names recommended above do not match the macro names 
expected by the external check item in the template. I had to change the 
external script call to: mikoomi-mongodb-plugin.sh[-h {$MONGODB_HOSTNAME} -p 
{$MONGODB_PORT} -z {$MONGODB_ZABBIX_NAME}] to get things to work properly (a 
bit sticky to find, but that fixed it). 
======8<========

Original issue reported on code.google.com by l.bigonv...@gmail.com on 15 Mar 2012 at 10:07

GoogleCodeExporter commented 9 years ago
Also, the template has no way to pass the  a mongoDB username and password in. 
I had to change the command in the template to read:

mikoomi-mongodb-plugin.sh[-h {$MONGODB_HOSTNAME} -p {$MONGODB_PORT} -z 
{$MONGODB_ZABBIX_NAME} -u {$MONGODB_USER} -x {$MONGODB_PASS}]

It would probably be a good idea to adjust the template and docs for this, as 
most mongoDBs in production have authentication on (exposing a fully open mongo 
DB to the network is kind of stupid :).

Original comment by rob...@paramise.com on 1 Apr 2012 at 1:15

GoogleCodeExporter commented 9 years ago
I posted the fixed/updated mongodb template over at 
https://gist.github.com/2275369

This version works with the macro changes in the documentation, and allows the 
user to pass in the following additional macros:
{$MONGODB_USER}
{$MONGODB_PASS}

If these values are not specified, no authentication will be used.

Also, the macro has sane defaults for the mongodb hostname (localhost) and port 
(27017).

Original comment by rob...@paramise.com on 1 Apr 2012 at 1:42