trigger action on remote host
-
hi guys
Ā i am new to netxms
i have a problem with action on remote agent
on agent i have this
#
# NetXMS agent configuration file
# Created by agent installer at Tue May 07 02:57:49 2013
#ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = ecs.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
*WinPerf
Action= dir:cmd.exe /c "dir c:\ > c:\1.txt"
SubAgent = wmi.nsm
SubAgent = ups.nsmand in object tools
i have a action with propertiesName :dir
agent action:
cmd.exe /c "dir c:\ > c:\1.txt"but nothing happens. what is wrong?
is there any documentation about actions?
Best regards. -
Hi!
There are two problems in your config:
- You put Action keyword in wrong section. It should be like this:
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = ecs.nsm
SubAgent = ping.nsm
SubAgent = logwatch.nsm
SubAgent = portcheck.nsm
SubAgent = winperf.nsm
Action= dir:cmd.exe /c "dir c:\ > c:\1.txt"
SubAgent = wmi.nsm
SubAgent = ups.nsm- On server side, you should only put name of the action configured on agent in "agent action" field. It will be just dir in your case.
Best regards,
Victor -
-
@jamesof said in trigger action on remote host:
is it possible to return generated output. i remember you said it is not possible (around 2010) . is this feature added to netxms?
still not possible

@jamesof said in trigger action on remote host:
can i set snmp oid with agent?
Only by calling external tools. You can copy nxsnmpset to agent and configure action which will call it.
@jamesof said in trigger action on remote host:
can i define security policies on agent ?
what do you mean by security policy on agent?
Best regards,
Victor -
-
@jamesof said in trigger action on remote host:
what do you mean by security policy on agent?
agent check manager have right to do action.
There are 3 level of access for an agent. Depending on how server's IP address listen in nxagentd.conf, it will have different access level. If server listed in:
- MasterServers - full access
- ControlServers - can read data and execute predefined actions, but cannot change config nor install policies.
- Servers - read only access
@jamesof said in trigger action on remote host:
and another question . can we have any accounting feature? which user how many usage which app ... for any session in remote device that running agent .
No, we don't have functionality like that.
Best regards,
Victor -
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