Closed ebdavison closed 13 years ago
I actually fixed this one by changing the findings.number_of_hosts to Host.count. This led to other changes of a similar nature as well as calls to the graphs being changed. This looks like the API changes I noticed in some of the repo source code log updates. I have this one working now again. Noticed that it is still the one that I initially created, not a newly updated one from you.
It seems you are referencing the 1.1 templates and not the 1.2 templates. Just make sure you are referencing the correct ones.
1.2 doesn't include the exec summary report. That is in 1.3, the 1.3 branch isn't complete yet. With that said the template from 1.3 should work on 1.2's engine. I don't think 1.3 is fully functional at the moment. I replaced the command line interface and have not tested it yet. You should be able to use the templates with 1.2 though. They are the same I just added more.
1.3 is working fine. I have taken the exec summary and extended it. I will share back and you can include it if you like once it has gone through more development and edits by my boss.
Solved in 1.3
I did try to use the gem install nessusdb and run it from another directory and it works fine. While going through the templates, however, the executive_summary.rb produces the following error:
Error: undefined method
number_of_hosts' for #<Class:0xb660fe44> /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:31:in
generate' (eval):19:ingenerate' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:in
eval' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:31:ingenerate' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:in
instance_eval' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:238:ininitialize' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:in
new' /usr/lib/ruby/gems/1.8/gems/prawn-core-0.8.4/lib/prawn/document.rb:130:ingenerate' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/../lib/nessusdb/prawn_templater.rb:29:in
generate' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/nessusdb:230:inmain' /usr/lib/ruby/gems/1.8/gems/nessusdb-1.2/bin/nessusdb:241 /usr/bin/nessusdb:19:in
load' /usr/bin/nessusdb:19