<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Reports]]></title><description><![CDATA[<p dir="auto">I am trying to generate some reports and have some troubles.</p>
<p dir="auto">I downloaded report from <a href="https://svn.netxms.org/public/netxms/tags/version-1.2.4/reports/IP%20Inventory.jrxml" rel="nofollow ugc">https://svn.netxms.org/public/netxms/tags/version-1.2.4/reports/IP Inventory.jrxml</a> and imported it to the NetXMS server.<br />
Then compiled report-generator.jar</p>
<pre><code>apt-get install fastjar
wget -r --no-parent https://svn.netxms.org/public/netxms/trunk/src/java/report-generator/
jar cvf report-generator.jar report-generator/
cp report-generator.jar /opt/netxms/java-lib/
</code></pre>
<p dir="auto">Then added this code to the netxmsd.conf</p>
<pre><code>JavaPath=/usr/bin/java
JavaLibraryDirectory=/opt/netxms/java-lib
JDBCDriver=org.postgresql.Driver
JDBCUrl=jdbc:postgresql://localhost/netxms
</code></pre>
<p dir="auto">But reports not generating.<br />
Thanks for any help.</p>
]]></description><link>https://forum.netxms.org/topic/2092/reports</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:20:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2092.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Dec 2012 10:11:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reports on Thu, 10 Jan 2013 10:14:26 GMT]]></title><description><![CDATA[<p dir="auto">Because the scheduling is not working I've came up with this solution.</p>
<p dir="auto">Generate report from console:</p>
<pre><code>"/usr/bin/java" -cp "/opt/netxms/java-lib/report-generator.jar" org.netxms.report.Generator "/etc/netxmsd.conf" "/opt/OpenVPN-report.def" "/opt/reports/`date +%d%m%Y`-openvpn-count.output"
</code></pre>
<p dir="auto"><em>/opt/OpenVPN-report.def</em> is our jasper report .jrxml file.</p>
<p dir="auto">Convert this report to PDF format:</p>
<pre><code>"/usr/bin/java" -cp "/opt/netxms/java-lib/report-generator.jar" org.netxms.report.Exporter "/opt/reports/`date +%d%m%Y`-openvpn-count.output" "/opt/reports/`date +%d%m%Y`-openvpn-count.pdf"
</code></pre>
<p dir="auto">And send this report via email:</p>
<pre><code>sendemail -f "sender@example.com" -t "receiver@example.com" -m "Subject: OpenVPN report `date +%d-%b-%Y`" -u "Header: Report `date +%d-%b-%Y`" -a "/opt/reports/`date +%d%m%Y`-openvpn-count.pdf"
</code></pre>
<p dir="auto">Add all of this to the cron, and we have custom reports scheduling.</p>
<p dir="auto">All that left is to wait when these features will be available from GUI.</p>
<p dir="auto">Edited: Attached short instruction with all necessary steps.</p>
<p dir="auto">Best regards,<br />
Rostyslav</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000001000-Reports.pdf">Reports.pdf</a></p>
]]></description><link>https://forum.netxms.org/post/9283</link><guid isPermaLink="true">https://forum.netxms.org/post/9283</guid><dc:creator><![CDATA[rostyslav]]></dc:creator><pubDate>Thu, 10 Jan 2013 10:14:26 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Wed, 09 Jan 2013 09:50:24 GMT]]></title><description><![CDATA[<p dir="auto">I've got this working... kind of.<br />
Created new custom report with <a href="http://jasperforge.org/projects/ireport" rel="nofollow ugc">http://jasperforge.org/projects/ireport</a> software.</p>
<p dir="auto">Had some trouble with figuring out how to create a query. Here is what I end with:</p>
<pre><code>SELECT
	object_properties.name AS nas_name,
	items.name AS parameter,
	raw_dci_values.transformed_value AS value
FROM
	object_properties
INNER JOIN
	items
ON
	object_properties.object_id = items.node_id AND items.name = 'OpenVPN.Users'
INNER JOIN
	raw_dci_values
ON
	items.item_id = raw_dci_values.item_id AND raw_dci_values.transformed_value ~ '^[0-9]+'
ORDER BY
	value
</code></pre>
<p dir="auto"><em>object_properties</em> table stores node names, <em>items</em> stores data collection items and <em>raw_dci_values</em> stores actual data.<br />
I've had to slightly change this query to create a pie chart similar to those on dashboards.</p>
<p dir="auto">I attached my reports for those who might need it.</p>
<p dir="auto">Now I'm having troubles with scheduling reports. Clicking on "<em>Schedule report execution</em>" do nothing.</p>
<p dir="auto">Also is there an option on sending reports via email?</p>
<p dir="auto">Best regards,<br />
Rostyslav</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000997-VPN-text.jrxml">VPN-text.jrxml</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000998-VPN-piechart.jrxml">VPN-piechart.jrxml</a></p>
]]></description><link>https://forum.netxms.org/post/9264</link><guid isPermaLink="true">https://forum.netxms.org/post/9264</guid><dc:creator><![CDATA[rostyslav]]></dc:creator><pubDate>Wed, 09 Jan 2013 09:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Tue, 08 Jan 2013 15:07:27 GMT]]></title><description><![CDATA[<p dir="auto">Alex, thank you for the prebuild package and instruction on how to build it myself.<br />
I've replaced report-generator.jar file with <a href="https://www.netxms.org/tmp/report-generator.jar" rel="nofollow ugc">https://www.netxms.org/tmp/report-generator.jar</a> , restarted netxms server and reports are generating.</p>
<p dir="auto">Lucas, I haven't seen this exception on my ubuntu server.</p>
<p dir="auto">I will try to generate my own, not prebuild reports, and will post results here.</p>
<p dir="auto">Best regards,<br />
Rostyslav</p>
]]></description><link>https://forum.netxms.org/post/9261</link><guid isPermaLink="true">https://forum.netxms.org/post/9261</guid><dc:creator><![CDATA[rostyslav]]></dc:creator><pubDate>Tue, 08 Jan 2013 15:07:27 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Tue, 08 Jan 2013 03:26:28 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Alex for the detailed how-to.</p>
<p dir="auto">I am using the report definition file from the netxms svn: <a href="https://svn.netxms.org/public/netxms/trunk/reports/IP%20Inventory.jrxml" rel="nofollow ugc">https://svn.netxms.org/public/netxms/trunk/reports/IP Inventory.jrxml</a> and tried both your and my report-generator.jar.</p>
<p dir="auto">The ValueRequiredException is printed to the console even in case that the report-generator.jar file is not present. Server log then contains <code>Exception in thread "main" java.lang.NoClassDefFoundError: org/netxms/report/Generator</code> So it seems to be independent of the presence of the generator.</p>
<p dir="auto">I also made sure that there is only one row in the reports table in the database.</p>
<p dir="auto">Do you have some other ideas what can be wrong?</p>
<p dir="auto">The full stacktrace, in case it helps:</p>
<pre><code>org.simpleframework.xml.core.ValueRequiredException: Unable to satisfy @org.simpleframework.xml.ElementList(inline=true, entry=, name=, data=false, empty=true, required=true, type=void) on field 'parameters' private java.util.List org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition.parameters for class org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition at line 2
	at org.simpleframework.xml.core.Composite.validate(Composite.java:705)
	at org.simpleframework.xml.core.Composite.readElements(Composite.java:510)
	at org.simpleframework.xml.core.Composite.readSection(Composite.java:388)
	at org.simpleframework.xml.core.Composite.read(Composite.java:367)
	at org.simpleframework.xml.core.Composite.readDefault(Composite.java:262)
	at org.simpleframework.xml.core.Composite.read(Composite.java:232)
	at org.simpleframework.xml.core.Composite.read(Composite.java:202)
	at org.simpleframework.xml.core.Composite.read(Composite.java:150)
	at org.simpleframework.xml.core.Traverser.read(Traverser.java:92)
	at org.simpleframework.xml.core.Persister.read(Persister.java:625)
	at org.simpleframework.xml.core.Persister.read(Persister.java:606)
	at org.simpleframework.xml.core.Persister.read(Persister.java:584)
	at org.simpleframework.xml.core.Persister.read(Persister.java:562)
	at org.simpleframework.xml.core.Persister.read(Persister.java:499)
	at org.simpleframework.xml.core.Persister.read(Persister.java:408)
	at org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition.createFromXml(ReportDefinition.java:47)
	at org.netxms.ui.eclipse.reporter.widgets.ReportExecutionForm.createParamEntryFields(ReportExecutionForm.java:184)
	at org.netxms.ui.eclipse.reporter.widgets.ReportExecutionForm.&lt;init&gt;(ReportExecutionForm.java:117)
	at org.netxms.ui.eclipse.reporter.views.ReportView.createPartControl(ReportView.java:63)
	at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:375)
	at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4317)
	at org.eclipse.ui.internal.WorkbenchPage$18.runWithException(WorkbenchPage.java:3359)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
	at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
	at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1600)
	at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
	at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
	at org.eclipse.swt.widgets.Display.syncExec(Display.java:4330)
	at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:1595)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2628)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.netxms.ui.eclipse.console.NXMCApplication.start(NXMCApplication.java:36)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
</code></pre>
]]></description><link>https://forum.netxms.org/post/9260</link><guid isPermaLink="true">https://forum.netxms.org/post/9260</guid><dc:creator><![CDATA[Lukas.Rypl]]></dc:creator><pubDate>Tue, 08 Jan 2013 03:26:28 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Mon, 07 Jan 2013 16:00:41 GMT]]></title><description><![CDATA[<p dir="auto">Management console was unable to parse report definition (it's xml file with root tag "jasperReport").<br />
Can you send me your report definition file?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lukas.rypl" aria-label="Profile: lukas.rypl">@<bdi>lukas.rypl</bdi></a> said in <a href="/post/9256">Reports</a>:</p>
<blockquote>
<p dir="auto">I got the following exception in the java management console stderr or stdout (netxms 1.2.4):</p>
<pre><code>org.simpleframework.xml.core.ValueRequiredException:
 Unable to satisfy @org.simpleframework.xml.ElementList(inline=true, entry=, name=, data=false, empty=true, required=true, type=void) on field
'parameters' private java.util.List org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition.parameters
for class org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition at line 2
</code></pre>
</blockquote>
]]></description><link>https://forum.netxms.org/post/9259</link><guid isPermaLink="true">https://forum.netxms.org/post/9259</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 07 Jan 2013 16:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Mon, 07 Jan 2013 15:53:27 GMT]]></title><description><![CDATA[<p dir="auto">I temporarily put complete prebuild package here: <a href="https://www.netxms.org/tmp/report-generator.jar" rel="nofollow ugc">https://www.netxms.org/tmp/report-generator.jar</a>.<br />
Due to licensing restrictions, we can't redistribute most of JDBC drivers so you have to compile it yourself (we will probably make jar with pgsql/mysql drivers only available on the webpage a bit later). Here is short instruction, how to build it yourself: <a href="http://wiki.netxms.org/wiki/How_to_compile_report-generator" rel="nofollow ugc">http://wiki.netxms.org/wiki/How_to_compile_report-generator</a></p>
<p dir="auto">When you obtain report-generator.jar, copy it to /opt/netxms/java-lib/ (JavaLibraryDirectory)</p>
<p dir="auto">I just tried to run "IP Inventory" with your configuration and report-generator from the link above and it works fine.</p>
]]></description><link>https://forum.netxms.org/post/9258</link><guid isPermaLink="true">https://forum.netxms.org/post/9258</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 07 Jan 2013 15:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to Reports on Mon, 07 Jan 2013 12:08:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi rostyslav,</p>
<p dir="auto">Did you have any success with the reports generation?</p>
<p dir="auto">I got the following exception in the java management console stderr or stdout (netxms 1.2.4):</p>
<pre><code>org.simpleframework.xml.core.ValueRequiredException:
 Unable to satisfy @org.simpleframework.xml.ElementList(inline=true, entry=, name=, data=false, empty=true, required=true, type=void) on field
'parameters' private java.util.List org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition.parameters
for class org.netxms.ui.eclipse.reporter.widgets.helpers.ReportDefinition at line 2
</code></pre>
<p dir="auto">Do you see the same error?</p>
<p dir="auto">BTW <a href="https://svn.netxms.org/public/netxms/trunk/src/java/report-generator/" rel="nofollow ugc">https://svn.netxms.org/public/netxms/trunk/src/java/report-generator/</a> contains source files and jar -cvf will create an archive, which can not be used as interpreted java jar file. There is a pom file in that directory which controls the build process and should be invoked via maven if you really need to build the report generator again. I think that it is not necessary.</p>
<p dir="auto">Best Regards,<br />
Lukas</p>
]]></description><link>https://forum.netxms.org/post/9256</link><guid isPermaLink="true">https://forum.netxms.org/post/9256</guid><dc:creator><![CDATA[Lukas.Rypl]]></dc:creator><pubDate>Mon, 07 Jan 2013 12:08:55 GMT</pubDate></item></channel></rss>