Hi,
When I go on Report / Network Usage / Accounting and try to generate report for whatever I want (Top Client, or whatever) and click on update, I've no results [[:(]] like if accounting was disabled... [[:(]]
thx
Hi,
please check /tmp/confd-debug.log for information. Search for things like this:
using new call Astaro::Reporting::***:***
sql call (db: 'reporting'): 'SELECT zzz FROM *** WHERE yyy GROUP BY ttt ORDER BY nnn DESC'
call execution runtime: 0.037641 seconds
You should see that the call is started, and how long it takes until it returns data, or if an error occured.
Cheers,
andreas
using new call Astaro::Reporting::NetAccounting::TopClients (f0bb01c44bea7b8db09fab167f594e7e)
sql call (db: 'reporting'): 'SELECT ip2country(ip_saddr) as src_country,int2ip(ip_saddr) as src_ip,transform_common(CAST(sum(flow_count) AS BIGINT)) as cnt_flow_str,sum(flow_count) as cnt_flow_int,transform_SI(CAST(sum(raw_in_pktlen+raw_out_pktlen) AS BIGINT),1) as sum_tra_total_str,sum(raw_in_pktlen+raw_out_pktlen) as sum_tra_total_int,transform_common(CAST(sum(raw_in_pktcount+raw_out_pktcount) AS BIGINT)) as sum_pktcount_str,sum(raw_in_pktcount+raw_out_pktcount) as sum_pktcount_int FROM accounting_data WHERE dayabs > 733371 GROUP BY ip_saddr ORDER BY sum_tra_total_int DESC'
call execution runtime: 0.005160 seconds
reporting=# select * from accounting_data;
ip_saddr | ip_daddr | ip_protocol | l4_dport | raw_in_pktlen | raw_in_pktcount | raw_out_pktlen | raw_out_pktcount | dayabs | flow_duration | flow_count
----------+----------+-------------+----------+---------------+-----------------+----------------+------------------+--------+---------------+------------
(0 rows)