Skip to content

Pris Plugin that can be installed on OpenNMS Karaf Container

Notifications You must be signed in to change notification settings

cgorantla/pris-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRIS Plugin

PRIS Plugin that can be installed and run on OpenNMS Karaf Container

Getting Started

git clone https://github.com/cgorantla/pris-plugin.git

Prerequisites

maven, java8, OpenNMS Horizon > 24.0.0

Improvements

  • Make PRIS compatible with OIA so that it can use same features that are already there.
  • Can run on OpenNMS and all the configuration co-exists.
  • No need to run another web-component

Installing

git clone https://github.com/cgorantla/pris-plugin.git
cd pris-plugin
mvn install

Configure PRIS Resources.

  • Load myRouter config into OpenNMS.
echo 'name = myRouter
source = xls
source.file = /home/chandra/Downloads/myInventory-metadata.xls
mapper = echo' > target/opennms/etc/org.opennms.plugins.feature.pris-myRouter.cfg
  • Load myServer config into OpenNMS.
echo 'name = myServer
source = xls
source.file = /home/chandra/Downloads/myInventory-metadata.xls
mapper = echo' > target/opennms/etc/org.opennms.plugins.feature.pris-myServer.cfg
  • Import the requisition
./target/opennms/bin/send-event.pl uei.opennms.org/internal/importer/reloadImport --parm 'url requisition://pris?name=myServer'
./target/opennms/bin/send-event.pl uei.opennms.org/internal/importer/reloadImport --parm 'url requisition://pris?name=myRouter'

Deployment on OpenNMS

cp kar/target/opennms-pris-plugin.kar ~/dev/opennms/target/opennms/deploy/

Built With

  • Maven - Dependency Management

Acknowledgments

Further Development

  • Add more Sources by implementing Source and SourceFactory.
  • Expose SourceFactory as osgi service in blueprint.
  • Can add more Mappers by implementing Mapper and MapperFactory
  • Expose MapperFactory as osgi service in blueprint
  • Add each source as different feature in karaf-features.

About

Pris Plugin that can be installed on OpenNMS Karaf Container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages