Custom command on Node
-
Dear All,
I using The Dude and I want to replace it with NetXMS. For now, I'm in investigation phase, so I want to learn as much as possible about NetXMS before migrate to NetXMS.
For now, I have a question, how can I check system update status on Node.In documentation I have found ExternalParametersProvider for run command on Node, but I do not understand what I should do after add this parameter in configuration file. I tried restart node, but on my Management I do not see any changes.
I tried to add Action in Object Tools for manual checking (but I need automatic/periodically), but It does not work. I tried to add any command, but without success.I testing commands on Linux Nodes, and second question is, how can I check system update on Windows too, or run any custom command on Node?
-
After googling again and testing I have found command:
ActionAnd now I know how to add Action in config file, for example:
Action=CheckSystemUpdate:yum updateinfo list --sec-severity=Critical | grep Critical | wc -lAfter this, I made Object Tools->Add new Action (Type: Agent Command) with parameters:
Agent's command: CheckSystemUpdateWhen I run this command manually (right click on Node->Tools->...) I get results, but I want to run this command periodically and add trigger for this. How can I do that?
-
Actions are for, well, running actions on nodes. This means they are one-time things, initiated by you.
What you want is ExternalParameter and ExternalParameterProvider.
These can be used to execute arbitrary commands on the OS, and their results will be presented as an NetXMS Agent Parameter, which you can use in a DCI.There is a good debate on ExternalParameter here:
https://www.netxms.org/forum/configuration/agent-config-(action-externalparam)/msg3136/#msg3136You can see an example of how to use an ExternalParameterProvider here:
https://wiki.netxms.org/wiki/Bind9 -
Just as an addition, its also fully documented in the Administrator Guide here:
https://www.netxms.org/documentation/adminguide/agent-management.html#agent-external-parameter
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