Java API
-
Hi,
As I am evaluating NetXMS for our needs, I have two questions:
-
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?
-
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
-
-
Hi!
- 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.
- 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 -
-
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 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login