Forum Discussion

rthomasgww's avatar
2 years ago

GroovyScriptHelper issues - method missing

I’m trying to build a datasource for our health-check API that returns a system name, status, and response time. I believe I need to set up active discovery to map the system names as the instance ke...
  • Stuart_Weenig's avatar
    2 years ago

    I’d return a different value on lines 15, 40, 57, & 80. Just so you can tell what the error was just by the return code. You can have the return code go into a datapoint and even set a threshold for non-zero return code. Always returning 1 negates the value of return codes.

    Is there a particular reason you’re trying to use LM’s undocumented GSH stuff? It’s overkill. On lines 65 and 88, just do:


    No muss, no fuss.