Macro {instance} not working for FileSystem.Free() - Error
-
Hi @ll,
i have create a template for defaults i want to poll. One of the DCI poll use the Parameter FileSystem.Free(*) via agent. I set up my DCI with follwoing:
[General] Parameter: FileSystem.Free({instance})
[Instance Discovery]: Method->Agent List; List name->FileSystem.MountPoints
This issue was also reported in this post: https://www.netxms.org/forum/general-support/lt-lt-error-gtgt-for-last-values-of-instance-discovery/msg17605/#msg17605The descripted solution (using [] instead of {}) does not solv my issue.
If i use identical settings with Parameter FileSystem.FreePerc({instance}) it works.
Output from debugger:
Node(Test)->getMetricFromAgent(FileSystem.Free()): dwError=500 dwResult=5As you can see, the Macro {instance} does not work for this parameter. If i setup my parameter like FileSystem.FreePrec(C:\), it works.
Has anyone the same issue?
Thanks
-
Hi @ll,
i have a solution with an older Agentparameter, that works for me. I use the Parameter Disk.Used({instance}), that is not listed in the available Parameter.
I found this parameter in a older Version of NetXMS -> Agent Parameters Compatibility Matrix. -
What data type do you use for FileSystem.Free({instance})? Try using "Unsigned Integer 64-bit" there as if you have a big HDD, the value can be very big as it's in bytes.
If it's still not working - how exactly the DCI is behaving? Does it goes into error?
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