From 8da8f6bcf0845f30c81f0d43300855851ec8da3c Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Thu, 24 Apr 2008 16:23:55 +0000 Subject: [PATCH] add macro @CENTREON_TMP@ git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@4857 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/check_centreon_snmp_traffic | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/centreon-plugins/src/check_centreon_snmp_traffic b/centreon-plugins/src/check_centreon_snmp_traffic index 2d5849397..9ba9a243b 100644 --- a/centreon-plugins/src/check_centreon_snmp_traffic +++ b/centreon-plugins/src/check_centreon_snmp_traffic @@ -325,8 +325,8 @@ $last_out_bits = 0; my $flg_created = 0; -if (-e "/usr/local/centreon/temp/traffic_if".$interface."_".$opt_H) { - open(FILE,"<"."/usr/local/centreon/temp/traffic_if".$interface."_".$opt_H); +if (-e "@CENTREON_TMP@/traffic_if".$interface."_".$opt_H) { + open(FILE,"<"."@CENTREON_TMP@/traffic_if".$interface."_".$opt_H); while($row = ){ @last_values = split(":",$row); $last_check_time = $last_values[0]; @@ -341,8 +341,8 @@ if (-e "/usr/local/centreon/temp/traffic_if".$interface."_".$opt_H) { $update_time = time(); -unless (open(FILE,">"."/usr/local/centreon/temp/traffic_if".$interface."_".$opt_H)){ - print "Unknown - /usr/local/centreon/temp/traffic_if".$interface."_".$opt_H. " !\n"; +unless (open(FILE,">"."@CENTREON_TMP@/traffic_if".$interface."_".$opt_H)){ + print "Check mod for temporary file : @CENTREON_TMP@/traffic_if".$interface."_".$opt_H. " !\n"; exit $ERRORS{"UNKNOWN"}; } print FILE "$update_time:$in_bits:$out_bits";