centreon / centreon-dsm

Dynamic Service Monitoring
4 stars 7 forks source link

Problem when traps and clear traps are in the same seconds #27

Closed garnier-quentin closed 7 years ago

garnier-quentin commented 8 years ago

Hi,

The problem comes from the following request in the file '/usr/share/centreon/bin/dsmclient.pl':

my $request = "SELECT * FROM mod_dsm_cache WHERE host_name LIKE '$host_name' AND ctime < '$entry_time' AND id = '$id'";

It should be :

my $request = "SELECT * FROM mod_dsm_cache WHERE host_name LIKE '$host_name' AND ctime <= '$entry_time' AND id = '$id'";

It's not a problem to change it. If there is clear traps you should enable the "sequential mode" for the trap configuration (or the group option if the clear trap and the error trap is not the same oid).

garnier-quentin commented 8 years ago

We should also removed the old ndo code.