NetXMS Support Forum

English Support => General Support => Topic started by: hzdtony on January 27, 2016, 10:03:51 AM

Title: Agent Command not execute
Post by: hzdtony on January 27, 2016, 10:03:51 AM
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.
(http://fwstatus.png)
(http://fwstatus-error.png)
Title: Re: Agent Command not execute
Post by: tomaskir on January 27, 2016, 10:36:16 AM
You put the action definitions into the filemgr section, which is invalid.

Put them into the main config section (above the filemgr section declaration).
Title: Re: Agent Command not execute
Post by: hzdtony on January 27, 2016, 11:31:13 AM
Thanks a lot!