mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
update rrd locations
git-svn-id: http://www.observium.org/svn/observer/trunk@139 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -12,7 +12,11 @@ if($device[os] != "Snom") {
|
||||
'tcpEstabResets','tcpInSegs','tcpOutSegs','tcpRetransSegs','udpInDatagrams','udpOutDatagrams','udpInErrors',
|
||||
'udpNoPorts');
|
||||
|
||||
$rrdfile = "rrd/" . $device['hostname'] . "-netinfo.rrd";
|
||||
$rrdfile = $rrd_file . "/" . $device['hostname'] . "/netinfo.rrd";
|
||||
|
||||
$Orrdfile = "rrd/" . $device['hostname'] . "-netinfo.rrd";
|
||||
if(is_file($Orrdfile) && !is_file($rrdfile)) { rename($Orrdfile, $rrdfile); echo("Moving $Orrdfile to $rrdfile"); }
|
||||
|
||||
$rrd_create = "rrdtool create $rrdfile ";
|
||||
$rrd_create .= "RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 \
|
||||
RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797";
|
||||
|
||||
Reference in New Issue
Block a user