Adding Node with additional data using newSuspect event

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding Node with additional data using newSuspect event

piotr.ciechonski
Hi,

I'm using 19.0.1 opennms.

Id' like to create Node using newSuspect event, but add in NodeLabel value different than IP address that is passed in interface. I'm sending such kind of event, but the NodeLabel field is not set in OpenNMS:

/opt/opennms/bin/send-event.pl --interface 192.168.2.247 --parm 'location Default' --parm 'labelSource U' --parm 'label NODE_LABEL' uei.opennms.org/internal/discovery/newSuspect

Additionally is there a possibility to pass the foreignId in event to be reflected in new created Node?
I'm creating such kind of event and passing also foreignSource. foreignSource is set but foreignId is not.

/opt/opennms/bin/send-event.pl --interface 192.168.2.247 --parm 'location Default' --parm 'labelSource U' --parm 'label MOJ_LABEL' --parm 'ipHostName HostName' --parm 'foreignSource TEST_PC' uei.opennms.org/internal/discovery/newSuspect

Please advice is there a possibility to add NodeLabel and foreignId to Node using newSuspect?

Regards
Piotr
Reply | Threaded
Open this post in threaded view
|

Re: Adding Node with additional data using newSuspect event

Seibold, Michael-2
Hi Piotr,

I would use the REST interface to add new nodes instead of using this event. If you search for this interface you should find more documentation like

https://wiki.opennms.org/wiki/Large_Requisitions
https://wiki.opennms.org/wiki/ReST

-Michael

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss