Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when generating reports through the web interface #557

Closed
thorny63 opened this issue Dec 9, 2013 · 1 comment
Closed

Error when generating reports through the web interface #557

thorny63 opened this issue Dec 9, 2013 · 1 comment
Assignees
Labels

Comments

@thorny63
Copy link

thorny63 commented Dec 9, 2013

When I use the web interface to generate reports I get an empty report with ARRAY(0x3971320) as result

Title: Bind_Top_50_Clients
Devices: 192.168.4.59
Services: Bind
Period: 05/12/2013 13:00 -> 05/12/2013 13:59
ARRAY(0x3971320)
Generated by Octopussy v1.0.10
Data from 3 files / 2344 lines handled in 0 minutes and 0 seconds.

When using the command line to generate the report there is an error: "Can't use an undefined value as an ARRAY reference at /usr/sbin/octo_reporter line 269."

I have determined that I can get the reports to work by editing the xml-files in /var/lib/octopussy/conf/reports/ directly. It appears that the web interface introduces errors in these files if you try to update or create them from there.

Specifically, I can see that when creating a report from scratch an xml-file is produced in this format:

<octopussy_report category="categoryname"
                  columns="x,y"
                  columns_name=",,"
                  description="Description"
                  graph_type="array"
                  loglevel="-ANY-"
                  name="Name"
                  query="SELECT x, COUNT(x) as COUNT_x FROM Device LIMIT 100"
                  table="Devicetable"
                  taxonomy="-ANY-"
                  version="201312090001"
                  x="x"
                  y="" />

This report works, but has no column names. If I try to edit the report through the web interface, it will add several lines to the bottom of the xml-file, after the last />.

The lines look like this:

 <columns>attack_id,COUNT_attack_id/columns>
  <columns>attack_id,COUNT_attack_id</columns>
  <columns_name>,</columns_name>
  <columns_name>,</columns_name>

These lines are the ones that seem to cause problems, and I have been able to produce the correct reports by removing those last lines and entering the correct column names within the octopussy_report.

The OS is Ubuntu 12.04.3 LTS, and Octopussy was installed from the octpussy_1.0.10_all.deb. I have speculated that there might be some perl library missing in my installation, but lack the knowledge to pinpoint which.

Any way, thank you for an amazing tool that I have found very useful so far. Keep up the good work!

@ghost ghost assigned sebthebert Dec 9, 2013
@sebthebert
Copy link
Collaborator

Hi,

thanks for reopening this bug on Github instead of Sourceforge.

I found the problem... fixing it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants