I searched the manual and the forum, and can't find an answer to this question.
Suppose I have a custom UserParameter (en_data) that returns the following:
en0:0:0:1234:9876:3579:3159:0:113
That would have an item created to store as-is.
Is it possible to then create separate calculated value items from each colon-delimited parameter?
ie:
Host.iface=(split(/:/, en_data))[0]
Host.xmitdropped=(split(/:/, en_data))[1]
Host.rcvdropped=(split(/:/, en_data))[2]
etc, etc
or:
Host.iface=(cut -d ":" -f0),en_data
Host.xmitdropped=(cut -d ":" -f1),en_data
etc, etc
Reason is ...
If I have three interfaces, and each interface has 10 parameters, that is 30 requests for data from the agent.
If I could split the colon-delimited result, I could reduce that to one request per interface, effectively moving the workload from the client-side (agent) to the server-side.
Is this remotely possible?
Thanks!
Suppose I have a custom UserParameter (en_data) that returns the following:
en0:0:0:1234:9876:3579:3159:0:113
That would have an item created to store as-is.
Is it possible to then create separate calculated value items from each colon-delimited parameter?
ie:
Host.iface=(split(/:/, en_data))[0]
Host.xmitdropped=(split(/:/, en_data))[1]
Host.rcvdropped=(split(/:/, en_data))[2]
etc, etc
or:
Host.iface=(cut -d ":" -f0),en_data
Host.xmitdropped=(cut -d ":" -f1),en_data
etc, etc
Reason is ...
If I have three interfaces, and each interface has 10 parameters, that is 30 requests for data from the agent.
If I could split the colon-delimited result, I could reduce that to one request per interface, effectively moving the workload from the client-side (agent) to the server-side.
Is this remotely possible?
Thanks!
Comment