hotsanic |
Subversion Repositories: |
Rev 1 | Rev 19 | |
---|---|---|
Line 81... | Line 81... | |
$name =~ s/:/_/g; |
$name =~ s/:/_/g; | |
$device=$host.":p".$port; |
$device=$host.":p".$port; | |
$dbfile=$host."_".$port; |
$dbfile=$host."_".$port; | |
$dbfile=~ s/\./:/g; |
$dbfile=~ s/\./:/g; | |
|
| |
} else { $name=$device; $name =~ s/:/_/g; $dbfile=$name; } |
} else { | |
$name=$device; | ||
$name =~ s/:/_/g; | ||
$dbfile=$name; | ||
$name =~ s/\./_/g; | ||
} | ||
} |
} | |
# if database exists, create images... |
# if database exists, create images... | |
print "creating images for $device ...\n"; |
print "creating images for $device ...\n"; | |
if ( -e "./rrd/$dbfile.rrd") { |
if ( -e "./rrd/$dbfile.rrd") { | |
if ((! defined $maxin) || ($maxin eq "") || ($maxin == 0)) { |
if ((! defined $maxin) || ($maxin eq "") || ($maxin == 0)) { |