problem with tranformation tool in DCI
-
Hey Victor,
I think there could be a problem with the transformation tool in the DCI configuration
in pic1 I have added a oid for monitoring memory usage of a server, set it to unsigned because else you will get a negative value with large numbers. The data that is send via SNMP it in kB, i want to convert it to Bytes so it shows correctly with the multipliers.
I tested a couple of scenarios, but I kept getting negative values back. (pic2),(pic3)
So eventually I thought it might be the tranformation tool. and when i looked at the last value. it showed up correctly(pic4)
Am I doing something wrong or is it a bug?




-
Just a couple of comments:
- Try changing your data type on the General tab to Unsigned integer 64 bit. With your transformation anything over 4GB may fail.
- Update your transformation to '$1 * 1024' as that is the correct conversion from KB to bytes, not 1000
- I cannot comment on the test transformation window, I have NEVER had it actually pop up for me. My only guess is that it is using the base type provided by the SNMP value as its type for processing which means anything over 2,147,483,647 (MAX for 32 bit signed) bytes becomes negative
-
@lweidig said in problem with tranformation tool in DCI:
Just a couple of comments:
- Try changing your data type on the General tab to Unsigned integer 64 bit. With your transformation anything over 4GB may fail.
- Update your transformation to '$1 * 1024' as that is the correct conversion from KB to bytes, not 1000
- I cannot comment on the test transformation window, I have NEVER had it actually pop up for me. My only guess is that it is using the base type provided by the SNMP value as its type for processing which means anything over 2,147,483,647 (MAX for 32 bit signed) bytes becomes negative
You are absolutely correct - test uses DCI data type, so it must be changed to 64 bit integer to get correct result.
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