Vitor Santos 71 Posted October 30, 2020 Share Posted October 30, 2020 Hello, Is there any possibility/workaround of invoking other datapoint values within a Groovy Complex DP? Thank you! Quote Link to post Share on other sites
0 mnagel 159 Posted October 30, 2020 Share Posted October 30, 2020 Seems like a no-brainer to support that, right? The only way you could as it stands is via API calls, which, without library support, is a non-starter for me. It could be done if you want to maintain many copies of the same code across modules (which seems to be the norm now, except they are all slightly different based on who writes them as you would expect). Quote Link to post Share on other sites
0 Vitor Santos 71 Posted October 30, 2020 Author Share Posted October 30, 2020 21 minutes ago, mnagel said: Seems like a no-brainer to support that, right? The only way you could as it stands is via API calls, which, without library support, is a non-starter for me. It could be done if you want to maintain many copies of the same code across modules (which seems to be the norm now, except they are all slightly different based on who writes them as you would expect). Totally understand you... But, for what we want it would really need to access the actual datapoints value... Unfortunately, we'll need to leverage other options. I appreciate your reply anyway mate Quote Link to post Share on other sites
0 Administrators Stuart Weenig 66 Posted November 2, 2020 Administrators Share Posted November 2, 2020 What's the collection method used? Quote Link to post Share on other sites
0 Vitor Santos 71 Posted November 2, 2020 Author Share Posted November 2, 2020 Just now, Stuart Weenig said: What's the collection method used? The collection method is SNMP. In the meanwhile, we've managed to sort it out using another method. Quote Link to post Share on other sites
0 Administrators Stuart Weenig 66 Posted November 2, 2020 Administrators Share Posted November 2, 2020 For Groovy based datapoints, when SNMP is the collector, there is a variable set in the script called "output". You can parse through that output variable to get the data. If it's counters, you'd need to use collector script caching to get the previous poll value to run the delta manually. Quote Link to post Share on other sites
0 Vitor Santos 71 Posted November 2, 2020 Author Share Posted November 2, 2020 Just now, Stuart Weenig said: For Groovy based datapoints, when SNMP is the collector, there is a variable set in the script called "output". You can parse through that output variable to get the data. If it's counters, you'd need to use collector script caching to get the previous poll value to run the delta manually. We were already doing that. However, we wanted values from other datapoints (gauge, derive, etc...).... Which as per the documentation isn't possible (validated on Friday) Quote Link to post Share on other sites
0 Administrators Stuart Weenig 66 Posted November 2, 2020 Administrators Share Posted November 2, 2020 Yeah, the output is passed to the groovy datapoint before the delta is calculated. Simply the raw output from the poll. Quote Link to post Share on other sites
0 Vitor Santos 71 Posted November 2, 2020 Author Share Posted November 2, 2020 1 minute ago, Stuart Weenig said: Yeah, the output is passed to the groovy datapoint before the delta is calculated. Simply the raw output from the poll. Understood... Yeah, thankfully we've arranged other solution. Appreciate the help anyway! 1 Quote Link to post Share on other sites
Question
Vitor Santos 71
Hello,
Is there any possibility/workaround of invoking other datapoint values within a Groovy Complex DP?
Thank you!
Link to post
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.