Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail: could not retrieve mongostat metrics 2 #6

Closed
marspark opened this issue Dec 23, 2015 · 7 comments
Closed

Fail: could not retrieve mongostat metrics 2 #6

marspark opened this issue Dec 23, 2015 · 7 comments

Comments

@marspark
Copy link

Hi

I've installed the "pm2-mongodb" module however it shows N/A for everything except CPU and MEM.

I've checked with pm2 logs and it keep says "pm2-mongodb-5 Fail: could not retrieve mongostat metrics 2".

I've confirmed that mongostat is working.

screen shot 2015-12-23 at 6 56 56 pm

@Necromos
Copy link
Contributor

  1. Make sure that you have installed mongostats on machine.
  2. Try to add whitespace before authenticationDatabase field (you need to do this in machine console via pm2 set pm2-mongodb:authenticationDatabase " dbname"). I made patch for this and it is waiting for pull.

@marspark
Copy link
Author

Hi,

I've ran

pm2 set pm2-mongodb:authenticationDatabase "wokamon"

and it didn't work. Please advise.

Thanks!

@Necromos
Copy link
Contributor

Try
pm2 set pm2-mongodb:authenticationDatabase " wokamon"

@AussieFlem
Copy link

Having the same issue on Ubuntu, MongoDB v3.0.8.
mongostat (not mongostat_s_) is installed.
User has "clusterMonitor" role.

Is this a v3 issue?

@alavit-d
Copy link
Contributor

alavit-d commented Jan 6, 2016

Hey, I just merged the @Necromos contribution and published the latest on NPM. Sorry for the delay!
I tested with Mongodb v3.0.7 and saw no issue, could you try with the latest version?

@AussieFlem
Copy link

Yep - N/A's are gone, stats are showing and the repeated auth fail message is gone from the logs.

Looks to have done the trick - nice catch @Necromos

@alavit-d alavit-d closed this as completed Jan 7, 2016
@marspark
Copy link
Author

It works now, thank you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants