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. Agent Command not execute

Agent Command not execute

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 18.1k 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.
  • H
    H
    hzdtony
    wrote on last edited by
    #1

    I install netxms server 2.0.1 on the Debian 8.3. and then  Install netxms agent on the  ubuntu 14.04.3.  the ubuntu /etc/nxagentd.conf file as follow:

    # Log File
    LogFile=/var/log/nxagentd
    
    # IP white list, can contain multiple records separated by comma.
    # CIDR notation supported for subnets.
    MasterServers = 192.168.137.137
    EnableActions = yes
    SubAgent = filemgr.nsm
    [filemgr]
    RootFolder = /nxagentdir
    Action = showip:/netxmscommand/showip.sh
    Action = oport:netstat -lnatup
    Action  = FWStatus:iptables -L
    

    the debian netxms server config file /etc/netxms as follow:

    LogFile=/var/log/netxmsd
    DebugLevel=7
    DBDriver=pgsql.ddr
    DBServer=127.0.0.1
    DBName=netxms
    DBLogin=netxms
    DBPassword=netxms
    EnableReportingServer = 1
    ReportingServerHostname = localhost
    ReportingServerPort = 4710
    

    on the restart netxms server and netxms agent after,I add Object Tools,type is "Agent command".but Agent Command Cannot execute,Detail please attachments.


    FWStatus.png

    FWStatus-error.png

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

      You put the action definitions into the filemgr section, which is invalid.

      Put them into the main config section (above the filemgr section declaration).

      1 Reply Last reply
      0
      • H
        H
        hzdtony
        wrote on last edited by
        #3

        Thanks a lot!

        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