Hello,
we want to use Centreon DSM on our environment and for now we are testing it, however, for the first time it seems working well until we acknowledged a service to free a slot, the slots has been freed but when we generate another trap, the alert doesn’t show up on the interface, and when we checked the database we found the trap already stored on mod_dsm_cache table which mean the dsm_client did his job. I have to mention that another entry where found on mod_dsm_lock.
so after some investigation, I tried to change clean_locks_time and clean_locks_keep_stored option in centreon_dsmd.pm file from 3600 seconds to 5 seconds and it’s working. (actually when I made the change in the configuation file, it didn’t work so I edited the script file directly and it worked).
My questions are:
1- What is the purpose of these two options ( clean_locks_time and clean_locks_keep_stored) ? and what are the effects of my changes on the monitoring ?
2- How mod_dsm_cache and mod_dsm_lock works ? I can’t get the logic behind it, I can assume the locks are used to prevent insertion in some cases, but I still dont get it because I could not understand how it works.
I have to mention that we are using Centreon 21.10.13
centreon_dsmd.pm
%centreon_dsmd_config = (
# which user will send action
centreon_user => 'centreon',
# timeout to send command
submit_command_timeout => 5,
# custom macro used to keep alarm ID
macro_config => 'ALARM_ID',
# number of alarms retrieve from the cache for analysis
sql_fetch => 1000,
# interval in seconds to clean locks
clean_locks_time => 3600,
# duration in seconds to keep locks
clean_locks_keep_stored => 3600,
);1;
Message I get in centreon-dsm.log
find slot result error palarm id = 454##28671] 3host id = 51] tservice = SnmpGatewayTraps_0001] -> hstatus = 1] service desc: SnmpGatewayTraps_0001] tdata: HASH(0x5634e0b160f0)] :free slot service: ] 1free slot data: ]
find slot id salarm id = 454##28671] "host id = 51] "service = SnmpGatewayTraps_0001]: already an alarm in locks. Need to wait.
I really appreciate your help.
Regards