nagios-plugin-mongodb icon indicating copy to clipboard operation
nagios-plugin-mongodb copied to clipboard

General MongoDB Error: not authorized for update on local.nagios_check

Open bbhenry opened this issue 10 years ago • 3 comments

I am using MongoDB version 2.4.4. and I created a user named "omd" with Readonly permission on "admin" database, but when run the query checks, I get the following error:

General MongoDB Error: not authorized for update on local.nagios_check

If I use the "admin" user , thing will appear normally except "insert" and "update". They would report with "connection took blah blah blah..." instead of "Queries blah blah blah... "

MDB_Query_Per_Second 0 OK - Queries / Sec: 0.750000 |query_per_sec=0.75;150.0;200.0
MDB_Insert_Per_Second 0 OK - Connection took 0 seconds |connection_time=0.0;150.0;200.0
MDB_Update_Per_Second 0 OK - Connection took 0 seconds |connection_time=0.0;150.0;200.0
MDB_Delete_Per_Second 0 OK - Queries / Sec: 0.000000 |delete_per_sec=0.0;150.0;200.0
MDB_Getmore_Per_Second 0 OK - Queries / Sec: 0.000000 |getmore_per_sec=0.0;150.0;200.0
MDB_Command_Per_Second 0 OK - Queries / Sec: 6.562500 |command_per_sec=6.5625;150.0;200.0

bbhenry avatar Feb 22 '14 00:02 bbhenry