Java API

Started by danieln, January 01, 2012, 05:12:18 PM

Previous topic - Next topic

danieln

Hi,

As I am evaluating NetXMS for our needs, I have two questions:

1. My main goal is to be able to push events from a java application into the NMS. As my java application emits JMX notifications, I want to catch them and using your java-api send a status event to netxms. Do you consider that a valid solution? Is there an online example of java api use for statuses and events?

2. Another requirement is to be able to execute commands from the network map on hosts and components. Is it possible to define such commands to be invoked from a context menu on the map? (e.g. open a web browser with a specific URL)

Thanks in advance

Daniel

Victor Kirhenshtein

Hi!

Quote from: danieln on January 01, 2012, 05:12:18 PM
1. My main goal is to be able to push events from a java application into the NMS. As my java application emits JMX notifications, I want to catch them and using your java-api send a status event to netxms. Do you consider that a valid solution? Is there an online example of java api use for statuses and events?

Yes, this is a valid solution. There are no online examples, but you can use Junit tests in Java API source tree as examples of how to do simple operations with Java API. And feel free to ask any questions regarding API on the forum. As for sending events, appropriate API call will be available in 1.1.8.

Quote from: danieln on January 01, 2012, 05:12:18 PM
2. Another requirement is to be able to execute commands from the network map on hosts and components. Is it possible to define such commands to be invoked from a context menu on the map? (e.g. open a web browser with a specific URL)

Yes, it's possible. You can define various "object tools", including for open specific URL or executing command either on management server, administrator's machine, or remote node with NetXMS agent. Those tools accessible anywhere in console where you see objects - on network maps, in object browser, in alarm list, etc.

Best regards,
Victor

danieln

Thanks Victor,

Where can I get the java api source code packages? Don't see them in the downloads sections, only the binaries and javadocs.
When will 1.1.8 be available?

Thanks

Daniel

Victor Kirhenshtein

You can get them from subversion repository: https://svn.netxms.org/public/netxms/trunk/src/java. Release of 1.1.8 was planned to the end of December, but we are a bit late on schedule. I hope that it will be ready for release this week.

Best regards,
Victor

danieln