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

Reload service configuration from node

0 votes
Hi all,


I add a service in a node using provision.pl , but i can't see the service from inside the node information, there is some way to reload this information?


I try

/opt/opennms/bin/provision.pl   --username admin --password loquesea requisition import WebTool

/opt/opennms/bin/send-event.pl uei.opennms.org/nodes/nodeUpdated --nodeid 666 --service MyService

but still not working

OpenNMS version
asked Apr 9, 2014 by Martí Ivà (510 points)
edited Apr 9, 2014 by Martí Ivà

1 Answer

0 votes
Best answer
I never used this script, so I can't answer your question. After a requisition change a synchronization is required. I guess your added service should appear now.
But there are two other approaches:
1. Add the service into the node tag in your requisition file (using web ui or edit the xml file) and use the synchronize button in the web ui.
2. Add a service detector in your foreign-source folder, press synchronize and maybe do a rescan at your node. 
Here two examples for a citrix detector: http://www.hemmler.net/opennms/provisiond-detector-fuer-citrix/
The second solution will detect your defined service on all nodes in your requisition!
Both will only detect your service. You also need a poller to monitor the availablity of your service.
Ah! There is a third solution: PRIS (I told you already). Best improvement ever! :-)
I hope this helps.
answered Apr 9, 2014 by mfuhrmann (6,850 points)
selected Apr 14, 2014 by Martí Ivà