Issue with execution of Actions
-
Hi,
It seems I have some problems to get my "Actions" executed.
I'm currently running server 1.0.6 with agent 1.0.6 on this server. Another node is running agent 1.0.4.A simple action is defined in both nodes config file:
Server node:
SubAgent = /usr/local/netxms/lib/libnsm_linux.so
Action = testjd:touch jdtest.txtAgent node:
SubAgent = /opt/netxms/lib/libnsm_linux.so
Action = testjd:touch jdtest.txtSubAgent = /opt/netxms/lib/libnsm_logwatch.so
*LOGWATCH
Parser = /home/netxms/Parsers/Parsing_my_log.xmlBoth agents show in logs that action is expanded and executed. But when listing the files in directory there is simply no file.
Action is triggered from an event which is triggered by a valid parsing of some text in the log file.Action is defined to be executed on remote agent with name of remote agent given.
Even when I exchange the action config for executing it on server or remote agent with server name inserted, nothing happens.There is no error in log files except the one related to DRBD... ???:
...
[09-Nov-2010 11:51:12] ParseIoStat(): new device added (name=dm-1 isRealDevice=1)
[09-Nov-2010 11:51:12] Unable to parse /proc/drbd, DRBD data collector will not start
[09-Nov-2010 11:51:12] Subagent "/opt/netxms/lib/libnsm_linux.so" loaded successfully
[09-Nov-2010 11:51:12] Subagent "Linux" already loaded from module "/opt/netxms/lib/libnsm_linux.so"
[09-Nov-2010 11:51:12] LogWatch: registered parser for file /home/daks/n2p_out.txt, trace level set to 0
[09-Nov-2010 11:51:12] LogParser: parser thread for file "/home/daks/n2p_out.txt" started
[09-Nov-2010 11:51:12] LogParser: file "/home/daks/n2p_out.txt" successfully opened
[09-Nov-2010 11:51:12] Subagent "/opt/netxms/lib/libnsm_logwatch.so" loaded successfully
[09-Nov-2010 11:51:13] Trying to bind on 0.0.0.0:4700
[09-Nov-2010 11:51:13] Listening on socket 0.0.0.0:4700Thanks for any support.
Br,Jdamien
-
-
-
Agent reload config on restart - so if change agent's config, you have to restart it. Maybe you just press "Save" instead of "Save & Apply" after first change?
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