Code

src/plugin.c: Initiate the threshold checking again.
authorAndrés J. Díaz <ajdiaz@connectical.com>
Mon, 18 May 2009 12:09:11 +0000 (14:09 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 18 May 2009 12:09:11 +0000 (14:09 +0200)
Hi,

I have the same problem in my instalation, exactly the same scenario, I found a
possible explanation in the plugin.c module. While in the 4.5 branch exists a
callback to function ut_check_threshold (defined in utils_threshold.c), in the
4.6.2 (and also in 4.6.1, I think), the callback is missing, so threshold
checking never runs.

In fact, a grep -r ut_check_threshold over src dir, only show the definition of
the function in ut_check_threshold module.

I'm not sure if it's really a bug, but when I patched my code, it works fine
for me :) I'm using the 4.6.2 version from tar.gz.

Best regards,
  Andrés

The regression was introduced in 65954d9b.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/plugin.c

index 74565c35821d11cdcd2c026e88ad5dc3a65d5ac5..a3a716115a2b80c9e1464c81a777cca09e42dc00 100644 (file)
@@ -961,6 +961,9 @@ int plugin_dispatch_values (value_list_t *vl)
        /* Update the value cache */
        uc_update (ds, vl);
 
+       /* Initiate threshold checking */
+       ut_check_threshold (ds, vl);
+
        if (post_cache_chain != NULL)
        {
                status = fc_process_chain (ds, vl, post_cache_chain);