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. Support
  3. cURL command from server

cURL command from server

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 11.0k 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.
  • C
    C
    chris.petree
    wrote on last edited by
    #1

    From the NetXMS server I'm monitoring a node using both standard SNMP OIDs as well as proprietary SNMP OIDs and through some of the proprietary OIDs I can see a critical outage with the node still being online. The node I am monitoring does not have an operating system where I could install anything or even run an automated script. I could put in a secondary device next to the node that I could send a cURL command to which could run a script from there. So I was wondering if anyone had an idea of a way to launch a bash script or send a cURL command based on an event in NetXMS.

    1 Reply Last reply
    0
    • T
      T
      Tursiops
      wrote on last edited by
      #2

      You can create an Action on your server which can call a command on your server (or a remote node). The action itself can be triggered through an Event Processing Policy for the Event in question.
      The commands on an agent can be defined the "Action" parameter in the agent configuration file. You can pass parameters to those actions as well.
      I assume that's what you're looking for?

      1 Reply Last reply
      0
      • C
        C
        chris.petree
        wrote on last edited by
        #3

        Hey,
        Thanks for the quick response. I ended up having a child right after I posted that. So I was out for a little bit getting him and his mom settled in.
        Anyway, that SEEMS to work. Just got to do some adjusting. I was wondering though, which directory is that command fired from? If it's on a Windows machine would it be launched from the NetXMS\bin folder? C:\NetXMS\bin

        1 Reply Last reply
        0
        • T
          T
          Tursiops
          wrote on last edited by
          #4

          We are running on Linux and we are not actually using Actions in this particular way, so can't confirm the path myself.
          If the service is running as SYSTEM, I'd guess that you might end up in C:\Windows\System32 by default, so I'd probably try full path first?

          1 Reply Last reply
          0
          • C
            C
            chris.petree
            wrote on last edited by
            #5

            Hey.
            Just FYI, I put the executable in the System32 folder and it executed. This inquiry is resolved. Thanks!

            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