Skip to content

Pris Plugin that can be installed on OpenNMS Karaf Container

Notifications You must be signed in to change notification settings

OpenNMS/pris-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRIS Plugin

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

OpenNMS

Getting Started

git clone https://github.com/OpenNMS/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/OpenNMS/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' > /opt/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' > /opt/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

sudo cp kar/target/opennms-pris-plugin.kar ~/opt/opennms/deploy/

Built With

  • Maven - Dependency Management

Release

  • Version number comes from the pom.xml tag
  • Merges to master trigger releases
  • Merges to develop trigger pre-releases
  • All other branches trigger just the build job
  • Branch build artifacts are in CircleCI of the build

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.