Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

How does automatic provisioning work?

0 votes
122 views

I'm using PRIS (http driver). I'm able to view my xml files via browser.

I added this config into provisiond-configuration.xml:

<requisition-def import-name="server" import-url-resource="http://localhost:8000/server">
<cron-schedule>* */10 * * * MON-FRI</cron-schedule>
</requisition-def>
 

My guess: Every 10 minutes provisiond should import the reqeuisition "server".

Unfortunately it doesn't work like I guessed :-)

OpenNMS version
1.12.5
Java version
java version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Operating system
CentOS 6.5 x64
PostgreSQL version
psql (PostgreSQL) 8.4.20
asked May 7, 2014 by mfuhrmann (7,350 points)
edited May 13, 2014 by mfuhrmann

1 Answer

0 votes
 
Best answer
The cron schedule was wrong:

<cron-schedule>0 0 /10 * * * ? *</cron-schedule>
answered May 13, 2014 by mfuhrmann (7,350 points)
Started a wiki-page for the PRIS installation. Addreses you're cron-schedule for every 10 minutes.
http://www.opennms.org/wiki/PRIS_installation

Can you review / add?
I don't figure out how to use the opennms-pris.service.
...