shinken-monitoring / mod-pickle-retention-file-scheduler

Shinken module for saving retention data from schedulers to a flat file.
GNU Affero General Public License v3.0
0 stars 2 forks source link

No /tmp/retention_scheduler.dat created #6

Open Winael opened 7 years ago

Winael commented 7 years ago

Hi

I installed this mod to have retention for scheduler on shinken, especially for comment and downtime. But I have no /tmp/retention_scheduler.dat file created and no retention at all for my scheduler

I'm using shinken 2.4.3 and this is what my shinken-config looks like:

cat /etc/shinken/shinken-specific.cfg 
define module {
    module_name     pickle-retention-file
    module_type     pickle_retention_file_generic
    path            /tmp/retention_scheduler.dat
}

define module {
    module_name     PickleRetentionArbiter
    module_type     pickle_retention_file_generic
    path            /tmp/retention_arbiter.dat
}

define module {
    module_name     PickleRetentionBroker
    module_type     pickle_retention_file_generic
    path            /tmp/retention_broker.dat
}

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

    # Advanced option if you are running a cluster environnement
    #    replica_set
}

define module {
    module_name     mongodb-dt-ct-retention-scheduler
    module_type     mongodb_dt_ct_retention_scheduler

    # Specify if we connect to replica set(HA) MongoDB instances or
    # just a stand alone MongoDB instance. Default to False, i.e. no HA.
    high_availability  false

    # with 'high_available' be 'true',
    # Addresses of Replica Set MongoDB instances separated by comma
    # for high availability.
    # replica_set   host1:port1, host2:port2,..., hostn:portn

    # with 'high_available' be 'false'
    # Address of stand alone MongoDB instance
    stand_alone    localhost:27017

    # We will store infos in 'database' with three collections:
    #
    # services collection for service info
    # downtimes collection for downtime info about service and host
    # comments collection for comment info about service and host
    #
    # Default to 'shinken_scheduler_dt_ct_retention'.
    database        shinken_scheduler_dt_ct_retention

    # MongoDB URL options
    # w=1&wtimeoutMS=3000   Write Concern
    # readPreference    secondary
    # journal=true      Journal
    # replicaSet=shinken     replica set name
    url_options     w=1&wtimeoutMS=3000&journal=true&readPreference=secondary&replicaSet=shinken&connectTimeoutMS=3000

    # Authorize to the specific MongoDB 'database'.
    # Both default to 'shinken_scheduler_dt_ct_retention'.
    username        shinken_scheduler_dt_ct_retention
    password        shinken_scheduler_dt_ct_retention

}

Thx in advance for your help

BR, Winael