How to use nxaction from command line
-
Hi,
i need to run a netxms action from a script, so i want to use nxaction from command line. I have Netxms installed on Debian.
My action is saved as "test_action", when executed it send a mail.
if i run from command line "nxaction netxms test_action" (where netxms is the name of the node of the Netxms Server) , I got "Error 500: Internal Error".
How can i run this action from command line?
Thank you
-
Hi!
nxaction is a tool intended for connecting to agent and executing action on agent (defined in nxagentd.conf using Action parameter). For executing server action simpliest way is to use nxevent for sending custom event and executing action you need in event processing policy as usual.
Best regards,
Victor -
Thank You!
nxevent is avaible from command line?
I have installed version 1.2.7, and I cannot find in /usr/local/bin the nxevent utility. The following is the content of the directory:
netxmsd   nxagentd  nxapush   nxencpasswd nxscript  nxsnmpwalk
nxaction  nxap    nxdbmgr   nxget    nxsnmpget  nxupload
nxadm    nxappget  nxdevcfg  nxmibc   nxsnmpsetIf i search on filesystem, I found i found only the source code of nxevent.
Thank you again.
-
Hi!
If you install NetXMS from sources, you should add --with-client option to configure.
Best regards,
Victor -
-
Hi!
Yes, you have to run configure and make again. There should be no risks, it will just build few additional binaries.
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