linux - How does a non-root user use the Nagios mongodb plugin? -


i have not been able use non-root user nagios mongodb plugin github repo :https://github.com/mzupan/nagios-plugin-mongodb.

for example: can run this:

./check_mongodb.py -h 'ip address'-p 27017 -u 'root admin user' -p 'password admin' -a database_size -d 'database_name' -w 100 -c 1000 , 

get response follows: ok - database size: 0 mb database: database_name

but if run non-root user of mongodb installation, happen follows:

/check_mongodb.py -h 'ip-address'  -p 27017 -u 'non-root user'  -p 'password'  -a database_size -d 'database_name' -w 100 -c 1000  

result:

critical - general mongodb error: command son([('authenticate', 1), ('user', u'non-root user'), ('nonce', u'565kp3321886122'), ('key', u'92309330endweqjwje')]) on namespace admin.$cmd failed: auth failed

i can tell authentication failed, im not sure failing in check_mongodb.py. can plugin run root user or there way run other mongodb users?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -