Detector for xml collector with a file source url
JohnD Blackburn <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <DB6PR0602MB290259C538CE6699A1849DBACB460@DB6PR0602MB2902.eurprd06.prod.outlook.com> |
According to the XML Collector wiki page, https://wiki.opennms.org/wiki/XML_Collector#XML_Sources_URLs , it is possible to configure an xml collector to utilise a local file for the xml-source url.
In addition you can use cron to collect files from somewhere else and output to a local file with the remote node's IP address in the file path.
file:///var/tmp/customstats/server-{ipaddr}.xml
Using this info, I have set up a script that runs on my opennms server that generates statistics for an application placing the data in an XML file containing the application node's IP address
<xml-collection name="xml-Batch">
<rrd step="300">
<rra>RRA:AVERAGE:0.5:1:2016</rra>
<rra>RRA:AVERAGE:0.5:12:1488</rra>
<rra>RRA:AVERAGE:0.5:288:366</rra>
<rra>RRA:MAX:0.5:288:366</rra>
<rra>RRA:MIN:0.5:288:366</rra>
</rrd>
<xml-source url="file:///home/opennms/etc/ellipse_{ipaddr}_batch.xml">
<import-groups>xml-datacollection/Batch.xml</import-groups>
</xml-source>
</xml-collection>
How do I set up a detector for this that I can use in a provisioning requisition? There doesn't seem to be a "local file" detector.
Regards,
John
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss