Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. Java API

Java API

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 21.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    danieln
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      @danieln said in Java API:

      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.

      @danieln said in Java API:

      1. 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

      1 Reply Last reply
      0
      • D
        D
        danieln
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • D
            D
            danieln
            wrote on last edited by
            #5

            Thank you vm!

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups