I am a new OpenNMS user and I try since few day to perform a simple performance counter acquisition from an xml file in a local directory.
The contain of the file is a file I have created for my test. I wanted to see how OpenNMS is working to read a file, treat it and the use the counter loaded to create a graph. I know the most basic way to treat counter in OpenNMS is to use SNMP but I wanted to see how work the other flow to collect the counter.
I have follow the indications described in the wiki:
Configure a new service in collectd-configuration.xml with a reference to the collector using the class: "org.opennms.protocols.xml.collector.XmlCollector"
Configure the xml-datacollection-config.xml file with defining the rrd configuration, the xml source contaning the counter data and the information to get in this file. As in my current test I am under Windows, I have defined for the path for the XML source file the following configuration: <xml-source url="file:D:/Performance/data/test.xml">
I have tried with this configuration to create manually a node in OpenNMS UI but the file does not seems to be read and no rrd file has been created.
I assum, I miss some configurations to be perform but I didn't get what.
Maybe I am wrong but I gess that I need to perform additional configuration. From other experience in Performance application I have, I thinks I should assign my new service or my configuration to a node or an interface.
Thanks in advance for you help
More details of the configuration I have currently done on my environment:
<filter>IPADDR != '0.0.0.0'</filter>
<include-range begin="188.8.131.52" end="254.254.254.254" />
<service name="XMLTest" interval="300000" user-defined="false" status="on">
<parameter key="collection" value="TestCollectionFile"/>
<parameter key="handler-class" value="org.opennms.protocols.xml.vtdxml.DefaultVTDXmlCollectionHandler"/>
<parameter key="rrd-repository" value="C:/Program Files (x86)/OpenNMS/share/rrd/test" />
<parameter key="rrd-base-name" value="file" />
<collector service="XMLTest" class-name="org.opennms.protocols.xml.collector.XmlCollector"/>
<xml-group name="srv-stats" resource-type="node" resource-xpath="/data/server">
<xml-object name="ServerName" type="string" xpath="@name" />
<xml-object name="ifInOctets" type="GAUGE" xpath="ifInOctets" />
<xml-object name="ifOutOctets" type="GAUGE" xpath="ifOutOctets" />
My test file is: