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

why provisiond doesn´t work ?

0 votes
253 views

I have a cron job that prepare a xml that provisiond use for import node`s information into opennms, this job send the event 

/opt/opennms/bin/send-event.pl uei.opennms.org/internal/importer/reloadImport -parm 'url file:/opt/opennms/etc/imports/pending/ImportFile.xml'

If I restart the opennms service, and triger the script, the following events are triggered by opennms  if the provisiond is finish successfull:

uei.opennms.org/internal/importer/importStarted

uei.opennms.org/internal/importer/importSuccessfull

but the process gives the impression of going slowing with each execution to do nothing, reaches a point where even the start event import is thrown in the log files I could not find any clue, would me much any contribution. 
 
The import file has about 752 nodes
 
thanks
OpenNMS version
1.12.5
Java version
1.4.2
Operating system
RHEL
PostgreSQL version
psql (PostgreSQL) 8.1.18
asked May 30, 2014 by anonymous
Can you give us some feedback? Did indigos answer help you?
Unfortunately indigo response did not serve me, the import process takes so long to finish, two days for 600 nodes more or less, I suspect the snmp configuration that I have is not adequate.

1 Answer

0 votes

Instead of running an external cronjob I would recommend using the cron procedure in provisiond-configuration.xml

<requisition-def import-name="NMS" import-url-resource="file://path/to/your/provisioning.xml">
  <cron-schedule>0 0 0 * * ? *</cron-schedule> <!-- daily, at midnight -->
</requisition-def>
 

which is less error prone. Place your self generated provisioning.xml file outside of OpenNMS and let Provisiond take care about dealing with pending and import folders.

In hope it helps

answered Jun 20, 2014 by indigo (11,480 points)
...