How it works :

Any package can be installed by using shinken install

Add your package to this index by using shinken publish


mod-mongodb-retention-scheduler

Module used for Scheduler to store retention infos about services and hosts to a mongodb database

shinken install mod-mongodb-retention-scheduler

mod-mongodb-retention-scheduler

This module is used by Scheduler daemon to store retention infos associated with services or hosts to a mongoDB database.

Basis

Because the update retention file operation is in the scheduler's main loop, in order to not delay other operations we make a assumption that if some thing error has happened, then we think that the update operation this time has failed, we just stop this update operation, log it and wait until next one.

SetUp

Note: Replica set MongoDB instances is the recommended way to work with.

Replica Set

MongoDB Replica Set with three instances
  • host1:port1
  • host2:port2
  • host3:port3
MongoDB Replica Set configuration
Configuration in mongodb-retention-scheduler.cfg

module_name mongodb-retention-scheduler
module_type mongodb_retention_scheduler
high_availability true
replica_set host1:port1, host2:port2, host3:port3
url_options w=1&wtimeoutMS=3000&journal=true&readPreference=secondary&replicaSet=shinken&connectTimeoutMS=3000
database shinken_retention_scheduler
username shinken__retention_scheduler
password shinken_retention_scheduler

Stand alone

MongoDB Stand alone
  • host:port
Configuration in mongodb-retention-scheduler.cfg

module_name mongodb-retention-scheduler
module_type mongodb_retention_scheduler
high_availability false
stand_alone host:port
url_options w=1&wtimeoutMS=3000&journal=true&readPreference=secondary&replicaSet=shinken&connectTimeoutMS=3000
database shinken_retention_scheduler
username shinken_retention_scheduler
password shinken_retention_scheduler