From 1beff9b50a3aa4a98f0592400a27daf6d73a2b68 Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Tue, 17 Feb 2015 15:55:23 +0100 Subject: [PATCH] Thank FTH - Fix alert triggering on file number --- apps/centreon/local/mode/retentionbroker.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/centreon/local/mode/retentionbroker.pm b/apps/centreon/local/mode/retentionbroker.pm index 1c12a18f6..e5110e6e7 100644 --- a/apps/centreon/local/mode/retentionbroker.pm +++ b/apps/centreon/local/mode/retentionbroker.pm @@ -151,7 +151,7 @@ sub run { $broker_rrd_retention_rrd_size = $broker_rrd_retention_rrd_size / 1024 /1024; } - if (($broker_retention_rrd_files_count > 1) || ($broker_retention_sql_files_count) > 1 || ($broker_retention_rrd_files_count > 1) || ($broker_rrd_retention_rrd_files_count > 1)) { + if (($broker_retention_rrd_files_count > 0) || ($broker_retention_sql_files_count > 0) || ($broker_retention_rrd_files_count > 0) || ($broker_rrd_retention_rrd_files_count > 1)) { $self->{output}->output_add(severity => 'CRITICAL', short_msg => 'There are some retention files check your broker output', long_msg => sprintf("sql_retention_files '%s' (size:'%.2f'MB) \nperfdata_retention_files '%s' (size:'%.2f'MB) \nrrd_retention_files '%s' (size:'%.2f'MB) \nrrd_retention_files '%s' (size:'%.2f'MB) ",