@@ -2900,7 +2901,7 @@ int execute_sync_host_check_3x(host *hst){
if(early_timeout==TRUE){
my_free(temp_plugin_output);
asprintf(&temp_plugin_output,"Host check timed out after %d seconds\n",host_check_timeout);
dummy=asprintf(&temp_plugin_output,"Host check timed out after %d seconds\n",host_check_timeout);
/* log the timeout */
logit(NSLOG_RUNTIME_WARNING,TRUE,"Warning: Host check command '%s' for host '%s' timed out after %d seconds\n",processed_command,hst->name,host_check_timeout);
...
...
@@ -3156,7 +3157,7 @@ int run_async_host_check_3x(host *hst, int check_options, double latency, int sc
@@ -3534,7 +3535,7 @@ int handle_async_host_check_result_3x(host *temp_host, check_result *queued_chec
my_free(temp_host->long_plugin_output);
my_free(temp_host->perf_data);
asprintf(&temp_host->plugin_output,"(Return code of %d is out of bounds%s)",queued_check_result->return_code,(queued_check_result->return_code==126||queued_check_result->return_code==127)?" - plugin may be missing":"");
dummy=asprintf(&temp_host->plugin_output,"(Return code of %d is out of bounds%s)",queued_check_result->return_code,(queued_check_result->return_code==126||queued_check_result->return_code==127)?" - plugin may be missing":"");
logit(NSLOG_RUNTIME_WARNING,FALSE,"SERVICE FLAPPING ALERT: %s;%s;STARTED; Service appears to have started flapping (%2.1f%% change >= %2.1f%% threshold)\n",svc->host_name,svc->description,percent_change,high_threshold);
/* add a non-persistent comment to the service */
asprintf(&temp_buffer,"Notifications for this service are being suppressed because it was detected as having been flapping between different states (%2.1f%% change >= %2.1f%% threshold). When the service state stabilizes and the flapping stops, notifications will be re-enabled.",percent_change,high_threshold);
dummy=asprintf(&temp_buffer,"Notifications for this service are being suppressed because it was detected as having been flapping between different states (%2.1f%% change >= %2.1f%% threshold). When the service state stabilizes and the flapping stops, notifications will be re-enabled.",percent_change,high_threshold);
logit(NSLOG_RUNTIME_WARNING,FALSE,"HOST FLAPPING ALERT: %s;STARTED; Host appears to have started flapping (%2.1f%% change > %2.1f%% threshold)\n",hst->name,percent_change,high_threshold);
/* add a non-persistent comment to the host */
asprintf(&temp_buffer,"Notifications for this host are being suppressed because it was detected as having been flapping between different states (%2.1f%% change > %2.1f%% threshold). When the host state stabilizes and the flapping stops, notifications will be re-enabled.",percent_change,high_threshold);
dummy=asprintf(&temp_buffer,"Notifications for this host are being suppressed because it was detected as having been flapping between different states (%2.1f%% change > %2.1f%% threshold). When the host state stabilizes and the flapping stops, notifications will be re-enabled.",percent_change,high_threshold);