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

Fresh install - module type problem #4

Open mohierf opened 9 years ago

mohierf commented 9 years ago

Following a fresh Shinken 2.4.2 install, I installed this module and I noticed that module_type is not consistent between configuration file and module.py ... should be the same!

I modified as this example for having a running configuration (pickle_retention_file_sched):

vi /etc/shinken/modules/pickle-retention-file-scheduler.cfg:

define module {
    module_name     pickle-retention-file
    module_type     pickle_retention_file_sched
    path            /var/lib/shinken/retention.dat
}
vi /var/lib/shinken/modules/pickle-retention-file-scheduler/module.py

properties = {
    'daemons': ['scheduler'],
    'type': 'pickle_retention_file_sched',
    'external': False,
    }
mohierf commented 9 years ago

My bad ... forget this issue, it was a side effect of #5 !

gst commented 9 years ago

I don't see what's the link with #5 ..

mohierf commented 9 years ago

I made a mistake when configuring ... and trying to fix :/P

mohierf commented 9 years ago

Indeed, after a new fresh install, the problem is:

[1446219959] INFO: [Shinken] Correctly loaded pickle-retention-file-scheduler as an old-new-style shinken module :|
[1446219959] INFO: [Shinken] Correctly loaded dummy_broker_external as an old-new-style shinken module :|
[1446219959] WARNING: [Shinken] The module type pickle-retention-file-generic for pickle-retention-file was not found in modules!

I had to change the module configuration file to replace pickle_retention_file_generic by pickle_retention_file ...