A Nagios Patch for Centreon Enterprise Server (CES) users

This post is also available in: French

Our experts have recently detected an anomaly when Nagios is used in conjunction with Centreon Broker (all versions).

This dysfunction is problematic in a production environment because it causes a double insertion of metrics in the Centreon Storage database.

If the volume of data generated is not blocking at first, eventually it could lead to a critical situation.

This is why our R & D teams have made a patch to Nagios and prompt you to update your supervision to version 3.2.3-6 CES.

Centreon Enterprise Server 2.2 users will perform a simple command which is as follows:

yum update

For users who have installed a server manually, it is necessary to apply the following patch, recompile and reinstall Nagios.

--- checks.c.bak    2010-09-21 17:05:31.000000000 +0200
+++ checks.c    2011-11-16 11:29:28.639550325 +0100
@@ -1605,11 +1605,15 @@
    broker_service_check(NEBTYPE_SERVICECHECK_PROCESSED,NEBFLAG_NONE,NEBATTR_NONE,temp_service,temp_service->check_type,queued_check_result->start_time,queued_check_result->finish_time,NULL,temp_service->latency,temp_service->execution_time,service_check_timeout,queued_check_result->early_timeout,queued_check_result->return_code,NULL,NULL);
#endif

-    /* set the checked flag */
-    temp_service->has_been_checked=TRUE;
-
-    /* update the current service status log */
-    update_service_status(temp_service,FALSE);
+        if(!(reschedule_check==TRUE
+             && temp_service->should_be_scheduled==TRUE
+             && temp_service->has_been_checked==TRUE)
+           || temp_service->checks_enabled==FALSE){
+                /* set the checked flag */
+                temp_service->has_been_checked=TRUE;
+                /* update the current service status log */
+                update_service_status(temp_service,FALSE);
+                }

    /* check to see if the service and/or associate host is flapping */
    if(flapping_check_done==FALSE){

Leave a Reply