mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
fix some billing shit. thanks to fall0ut
git-svn-id: http://www.observium.org/svn/observer/trunk@1954 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+3
-5
@@ -40,10 +40,8 @@ function CollectData($bill_id)
|
||||
|
||||
echo("\nPolling ".$port_data['ifDescr']." on ".$port_data['hostname']."\n");
|
||||
|
||||
$port_in_measurement = trim(getValue($host, $port_data['community'], $port_data['snmpver'], $port, $port_data['ifIndex'], "In"));
|
||||
$port_out_measurement = trim(getValue($host, $port_data['community'], $port_data['snmpver'], $port, $port_data['ifIndex'], "Out"));
|
||||
|
||||
echo("$port_in_measurement and $port_out_measurement \n");
|
||||
$port_in_measurement = getValue($host, $port, $port_data['ifIndex'], "In");
|
||||
$port_out_measurement = getValue($host, $port, $port_data['ifIndex'], "Out");
|
||||
|
||||
$now = mysql_result(mysql_query("SELECT NOW()"), 0);
|
||||
|
||||
@@ -120,4 +118,4 @@ function CollectData($bill_id)
|
||||
|
||||
if ($argv[1]) { CollectData($argv[1]); }
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user