Report generation

Generating of OpenOffice / MS Office documents from MagicTree data.

Multiple hosts affected by same vulnerability in table


Im trying to put the vulnerabilities from a Nessus scan in the left column of a table with the affected hosts (multiple) in a column next to it.
However this puts the vulnerability for each IP in a different row, resulting in duplicate vulnerabilities and a few pages of results.
When I put it outside of a table and underneath eachother it works perfectly fine.
This is the code I use:

Error report generation failed

I'm receiving the following error when trying to generate a report:

Report generation failed. Failed evaluating XPath expression "//finding[@title = $_0 and @status!='ignore']": Cannot resolve variable "$_0": Back-reference stack contains 0 values. (namespaceURI: null, prefix=, localName=_0). Cannot resolve variable "$_0": Back-reference stack contains 0 values. (namespaceURI: null, prefix=, localName=_0)

MS Office on Mac

Is the Mac version of Office compatible with magictree?

I have MS Office 2011 but have not been able to generate a report with magic tree. When generating the report it just remains at the progress bar indefinitely.
I have installed OpenOffice as a interim solution, but I would like to keep the reports in Office format.

Any ideas?


Query to return particular finding, associated host & output


My XPath needs to be vastly improved to get much value out of this excellent product - but:

Could someone help me with the syntax for a query which would return the following in a table suitable for a report, based on some imported Nessus V2 data?

The contents of the "output" node for each instance of the finding "Patch Report", per each host in the scan.

This would enable me to create a very primitive, first-pass remediation plan for environments where patch management is the biggest problem.

Character encoding / escaping in function calls


my question would be: How can I encode / escape special chars in string arguments?
General XPATH related documents on the net advise to use html syle encoding like
but that doesn't work for me.

I would like to achieve the following:
I have a table which contains vulnerability details. The vulnerability affects multiple hosts and I would like to list them in a cell. By default MT will add a new table row for all hosts. To avoid that I used the mt:join() function and it is working well, but I can't use CRLF as a separator.

Image Node in Text Node


I'm using Textnodes to individually add Information for the findings.
Additionally i added an Image Node. Can I integrate the Image (Node) in the
Textfield of the Text Node for ex. with tags or something like that?

Formatted Table Per Finding?

I would like to have the ability to generate a report with each finding contained within it's own table. Unfortunately, when I take the provided template to do this, report generation seems to be hung up on this and freezes without output. Each table would be autonumbered if possible...

I am trying to take the following:

High Severity
No high severity problems were identified. {{.[count(//finding[source-severity='high'])=0]|hidden}}




Critical findings in report from nessus?

Hi again,

I noticed while generating a report from a nessus v2 file that has over 20 critical findings (as labeled by Nessus 5), that MagicTree outputs them as High (not Critical label).

Is it possible to have MagicTree read the Nessus label appropriately and assign the criticality label correctly?


Page Break after every finding?

Is there a good way to make a Page Break after every finding?

For examble the summary-of-findings-cross-referenced Template.
There is a Page Break when all High Findings are listed and it switches to Medium.
But I want a Page Break after every High finding.

Is there a command for Page Breaks?

affects and hostname

Is it possible to write the hostname after affects in the Report?
It don't get it to work because "affects" and "hostname" are separate leafs of "host".

{{//finding[@title = $_0 and @status!='ignore']|hidden}}{{affects}}


Subscribe to RSS - Report generation