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:
parent
65b939bb40
commit
8da8f6bcf0
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue