Re: [opennms-devel] New application integration

Michael Smith <[email protected]>
Newsgroups gmane.network.opennms.bugs
Message-ID <484FCA50.3090900__22345.6305139282$1213189091$gmane$org@cbnco.com>
[email protected] wrote:
> From what I can see from this thread, it appears that this is possible
> via the "model import" services.  I'm having trouble piecing together
> the detailed steps, and I think that pointers to docs and or examples
> would go a long way...

Hi Doug,

The model importer needs a URL to load the import file from. file:// and 
http:// URLs both work.

The model-importer.properties configuration file is documented in the 
Wiki (http://www.opennms.org/index.php/Importer_Service), but if you 
want to see the format expected by the importer, take a look at some of 
the XML files here:

http://opennms.svn.sourceforge.net/viewvc/opennms/opennms/trunk/opennms-import/src/test/resources/

The XSD file for the XML syntax is here:

http://opennms.svn.sourceforge.net/viewvc/opennms/opennms/trunk/opennms-config/src/main/castor/model-import.xsd?revision=7524&view=markup

In my case I point the model importer at a CGI that rifles through my 
provisioning database and generates the required XML dump.

importer.importURL = http://localhost:4444/blah/export.py

You could also push from the other side: save the XML dump to a file on 
the OpenNMS server periodically, and trigger OpenNMS to reload the file 
from a file:// URL following these instructions:

http://www.opennms.org/index.php/ForceAnImport

Mike

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.