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. Custom command on Node

Custom command on Node

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 36.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.
  • K
    K
    Kolesar
    wrote on last edited by
    #1

    Dear All,

    I using The Dude and I want to replace it with NetXMS. For now, I'm in investigation phase, so I want to learn as much as possible about NetXMS before migrate to NetXMS.
    For now, I have a question, how can I check system update status on Node.

    In documentation I have found ExternalParametersProvider for run command on Node, but I do not understand what I should do after add this parameter in configuration file. I tried restart node, but on my Management I do not see any changes.
    I tried to add Action in Object Tools for manual checking (but I need automatic/periodically), but It does not work. I tried to add any command, but without success.

    I testing commands on Linux Nodes, and second question is, how can I check system update on Windows too, or run any custom command on Node?

    1 Reply Last reply
    0
    • K
      K
      Kolesar
      wrote on last edited by
      #2

      After googling again and testing I have found command:
      Action

      And now I know how to add Action in config file, for example:
      Action=CheckSystemUpdate:yum updateinfo list --sec-severity=Critical | grep Critical | wc -l

      After this, I made Object Tools->Add new Action (Type: Agent Command) with parameters:
      Agent's command: CheckSystemUpdate

      When I run this command manually (right click on Node->Tools->...) I get results, but I want to run this command periodically and add trigger for this. How can I do that?

      1 Reply Last reply
      0
      • T
        T
        tomaskir
        wrote on last edited by
        #3

        Actions are for, well, running actions on nodes. This means they are one-time things, initiated by you.

        What you want is ExternalParameter and ExternalParameterProvider.
        These can be used to execute arbitrary commands on the OS, and their results will be presented as an NetXMS Agent Parameter, which you can use in a DCI.

        There is a good debate on ExternalParameter here:
        https://www.netxms.org/forum/configuration/agent-config-(action-externalparam)/msg3136/#msg3136

        You can see an example of how to use an ExternalParameterProvider here:
        https://wiki.netxms.org/wiki/Bind9

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

          Just as an addition, its also fully documented in the Administrator Guide here:
          https://www.netxms.org/documentation/adminguide/agent-management.html#agent-external-parameter

          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