This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accounting Report Not Available

Reports | Accounting

I have enabled Accounting on my internal and external interfaces and my Ignored Networks shows as " Empty List ".  

When I go to Reporting | Accounting, it is turned on, set to Full, and the internal network is selected.

Both Browse Accounting Reports and Report For Current Month sections state that no reports are available.

When you browse the Local Logs | Accounting Data, you see that there is information being collected and saved to the logs.

This is happening on three different systems that I upgraded to 5.027 from a 4.02x backup then from 5.027  to 5.100 using the uptodate function.

I have turned in a support request to AstaroUS and they have looked at the problem.  As far as they know, everything is setup correctly.

The next step appears to be for me to reload everything from scratch.  Which is not something I am looking forward to.  In fact, it's why I upgraded these systems using new drives and retained the hard drives with the old 4.02x install.  

If forced to choose between reloading the system from scratch in the hopes that the accounting will work or going back to 4.02x where I know it works, I may opt for the easy way out and postpone the version change to the summer.

Anyone out there have any ideas as to what I should be looking for?  Any help would be much appreciated.


This thread was automatically locked due to age.
  • First of all - great error description. Only on rare occassions I get to see such precise and complete explanations on where a problem is. Although I don't have an idea (yet) what the source of this problem might be, I can give you some general directions; maybe we'll come up with a solution after a few question&answer rounds :-)

    Since you have accounting data, the first step I'd like you to do is check the crontab (/etc/crontab) for any lines containing a file called "nacctddispatcher". Those lines should look like this:
     Code:
    # archive accounting daily at midnight and monthly
    20 0 * * *       root /usr/local/bin/nacctddispatcher.sh full yesterday  192.168.5.0:255.255.255.0
    30 1 1 * *       root /usr/local/bin/nacctddispatcher.sh full lastmonth  192.168.5.0:255.255.255.0
    30 2 * * *       root /usr/local/bin/nacctddispatcher.sh full thismonth  192.168.5.0:255.255.255.0
     


    While the number and address ranges of your networks might differ, the lines should exist in any case.

    If they exist, the second step would be to run one of those lines manually from the shel, preferably the first one. This should generate a report, and from that on you should at least have an empty report in "Browse Accounting Reports".

    Watch out for any errors; if nothing happens, try to insert a "-d" argument to the nacctddispatcher command (as first argument!) and inspect the log file mentioned there. Report back here with the results :-)

    Hope that helps,
    andreas
  • I  also have this problem. I did a fresh install of 5.100  and reloaded the current backup file  and the above discription matches the same problem that I have exatly. I have check the crontab file as indictaed  above and find these enteries as discribed. What other information / logs/ files would be of use. As a precurser to this I have enabled accounting on and off for the 3 networks installed, changed accounting from full to small with the effects of "No accounting reports available". Hope this helps. If further information or tests required I'm only happy to help as this system is a test bed system.
    Mark
  • I also have the same issue.

    Astaro staff (Especially Bernd Schuler) has login access to my machine if required.

    5.100 using a restored backup from the 5.1 beta version.
  • I was having the same problem with exactly the same symptoms. The problem started when importing a 5.027 backup on a fresh 5.027 install.

    With andreas' hint to manually execute the accounting command with "-d" it turned out that the directory "nacctd" in /var/log/reporting/ did not exist. After creating this directory, the accounting reports are back. 

    Sascha
  • My systems were also missing the /var/log/reporting/nacctd folder.  Every one of them.

    How about adding a little check to see if this folder exists, and if not, create it?  My $0.02.


    Anyway, I have created the folder and started the nacctddispatcher.sh on two of the systems.  The other box is having other problems as well.  When I go the folder where the nacctddispatcher.sh file is, it shows up in the list.  But when I try to execute it, it says command not found.

    The file is there, I can see it, I can even open it in " Joe ".  Repeated restarts of the box produce the same effects.

    Ideas?   Punt?
  • [ QUOTE ]
    How about adding a little check to see if this folder exists, and if not, create it?  My $0.02.

    [/ QUOTE ]
    This would fix the symptom, not the source of the problem. This folder is not created on the run, it is there from the installation, and it should not get lost. "The right thing to do" (tm) is to find out why it got lost - maybe some other folders got lost, too? And that is what we're going to do.

    [ QUOTE ]

    Anyway, I have created the folder and started the nacctddispatcher.sh on two of the systems.  The other box is having other problems as well.  When I go the folder where the nacctddispatcher.sh file is, it shows up in the list.  But when I try to execute it, it says command not found.

    The file is there, I can see it, I can even open it in " Joe ".  Repeated restarts of the box produce the same effects.

    [/ QUOTE ]
    Blunt question - did you call the script with the full path?
  • I changed to the directory where the file was located then ran it.  This method worked on two of the boxes, but not the other.

    As soon as school releases for the day ( 3:00 PM Central) I am going to backup the config then start over with this box.

    Before I do anything after the install I am going to see if the directory that I was missing is in fact created when using the 5.1 ISO.  Will let you know what I find out.
  • Ok - I backed up my 5.100 install and reloaded the box using a 5.100 CD created with the latest ISO on the Astaro site.

    After configuring the passwords I logged on to the box and changed to the /var/log/reporting directory.  The "nacctd" was present.

    I logged on via Webadmin and loaded my backup file.  I checked the box and everything appears to be as it was before the re-install.

    I logged back on to the box and made sure the "nacctd" folder was present.  It was, and still is.  Hopefully, the Accounting reports will start working now.

    I'll check again tomorrow to make sure the folder is still there.

    Thanks for the assistance,
  • The /var/log/nacctddata directory is present, with the net-acct file  updating with root root permissions. Would anybody like me to rebuild this machine again with the 5.100 disk that I downloaded, to see what happens this time? Any other checks that people would like me to perform?
    ps. Network >> Accounting    Traffic Accounting  has  six interfaces listed Red, DMZ and internal with three blank interfaces that are ticked but I'm unable to untick or remove them. This is the only other hiccup that I have seen with 5.100 since rebuild.

    Mark
  • Ok - checked the box again this morning and guess what?  The /var/log/reporting/nacctd folder is gone.

    I didn't delete it, no one else has access to the box, so my guess would be that the system is deleting it itself.

    Something wrong with the nightly maintenance?