mirror of
https://github.com/librenms/librenms.git
synced 2024-09-25 04:19:07 +00:00
debugging code to squash spikes
git-svn-id: http://www.observium.org/svn/observer/trunk@3227 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
8951e15477
commit
644f834f5b
@ -320,6 +320,14 @@ foreach ($ports as $port)
|
||||
}
|
||||
}
|
||||
|
||||
if($config['debug_port'][$port['port_id']])
|
||||
{
|
||||
$port_debug = $port['port_id']."|".$polled."|".$polled_period."|".$this_port['ifHCInOctets']."|".$this_port['ifHCOutOctets'];
|
||||
$port_debug .= "|".$port['stats']['ifInOctets_rate']."|".$port['stats']['ifOutOctets_rate']."\n";
|
||||
file_put_contents("/tmp/port_debug.txt", $port_debug, FILE_APPEND);
|
||||
echo("Wrote port debugging data");
|
||||
}
|
||||
|
||||
$port['stats']['ifInBits_rate'] = round($port['stats']['ifInOctets_rate'] * 8);
|
||||
$port['stats']['ifOutBits_rate'] = round($port['stats']['ifOutOctets_rate'] * 8);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user