Re: Detector for xml collector with a file source url
JohnD Blackburn <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <DB6PR0602MB29026F11426B486C9D186CF5CB440@DB6PR0602MB2902.eurprd06.prod.outlook.com> |
Thanks Ron, I'll have a look into doing it that way. Regards, John From: Roskens, Ronald [mailto:[email protected]] Sent: Monday, 23 October 2017 11:20 PM To: 'General OpenNMS Discussion' <[email protected]> Subject: Re: [opennms-discuss] Detector for xml collector with a file source url I would just add a monitored service to the node in the provisioning requisition so its auto-added rather than detected. Ron From: JohnD Blackburn [mailto:[email protected]] Sent: Sunday, October 22, 2017 8:35 PM To: General OpenNMS Discussion Subject: [opennms-discuss] Detector for xml collector with a file source url 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<file:///\\var\tmp\customstats\server-%7bipaddr%7d.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<file:///\\home\opennms\etc\ellipse_%7bipaddr%7d_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 ________________________________ This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. ------------------------------------------------------------------------------ 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