shinken-monitoring / mod-logstore-mongodb

Shinken module for exporting logs to mongodb from the Livestatus module
GNU Affero General Public License v3.0
5 stars 10 forks source link

Mongodb logs problem #12

Open tarak666 opened 9 years ago

tarak666 commented 9 years ago

Hi,

I have mongodb and logstore-mongodb installed in my shinken2.2 with webui(BS3-1.0). I have a Error on " Error : Unable to create mongo DB connection localhost:27017"

Screen:- 3

My config file:-

File: Mongodb.cfg

define module { module_name mongodb module_type mongodb uri mongodb://localhost/?safe=false database shinken

username username ;optional

password password ;optional

}

file:- logstore_mongodb.cfg

define module { module_name logstore-mongodb module_type logstore_mongodb mongodb_uri mongodb://localhost/?safe=false ; Set to your value database shinken }

mongod (pid 3024) is running...

Thanks, Tarak

mohierf commented 9 years ago

With your configuration you should have a database called shinken in your mongodb. In this database you should find a collection named logs.

Have you tried to request on your mongodb shinken database with another application to confirme everything is fine in your mongodb configuration ?