Guest User!

You are not Sophos Staff.

[CONFIRMED] [7.350] Network Usage Accounting no longer working ?

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
Parents
  • 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
  • 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


    ok I get:


    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


    and just checked into the accounting_data table onto reporting database and seems there are nothing [[:(]]


    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)


    whereas it seems accounting to be active into the astaro ui [[:(]]

    thx
  • Hi,
    there was a problem with the signaling of the ulog daemon (which is responsible for writing accounting data into the reporting tables). We already fixed this before the release of the beta, but it didn't make it in. A simple restart of the ulog daemon should be sufficient to make it work again (/etc/init.d/ulog restart). The fix will be shipped with the next beta version.

    Cheers,
     andreas
  • Andreas,

    I also have version 7.305 with the exact same issue.  However, restarting the ulog daemon did not resolve my issue.  In /tmp/confd-debug.log I get:
    using new call Astaro::Reporting::NetAccounting::TopClients (c081fbcc8d924acfea0951e9d040dfed)
    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 = 733379 GROUP BY ip_saddr ORDER BY sum_tra_total_int DESC'
    call execution runtime: 0.306789 seconds

    Which looks ok.
    Any advise would be wonderfull.

    Thank you,
    Sebastian
  • Do you have a stable 7.305 or the beta which is 7.350?
Reply Children
No Data