add macro @CENTREON_TMP@

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@4857 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Julien Mathis 2008-04-24 16:23:55 +00:00
parent 65b939bb40
commit 8da8f6bcf0
1 changed files with 4 additions and 4 deletions

View File

@ -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 = <FILE>){
@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";