cURL command from server
-
From the NetXMS server I'm monitoring a node using both standard SNMP OIDs as well as proprietary SNMP OIDs and through some of the proprietary OIDs I can see a critical outage with the node still being online. The node I am monitoring does not have an operating system where I could install anything or even run an automated script. I could put in a secondary device next to the node that I could send a cURL command to which could run a script from there. So I was wondering if anyone had an idea of a way to launch a bash script or send a cURL command based on an event in NetXMS.
-
You can create an Action on your server which can call a command on your server (or a remote node). The action itself can be triggered through an Event Processing Policy for the Event in question.
The commands on an agent can be defined the "Action" parameter in the agent configuration file. You can pass parameters to those actions as well.
I assume that's what you're looking for? -
Hey,
Thanks for the quick response. I ended up having a child right after I posted that. So I was out for a little bit getting him and his mom settled in.
Anyway, that SEEMS to work. Just got to do some adjusting. I was wondering though, which directory is that command fired from? If it's on a Windows machine would it be launched from the NetXMS\bin folder? C:\NetXMS\bin -
-
Hey.
Just FYI, I put the executable in the System32 folder and it executed. This inquiry is resolved. Thanks!
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