Michael Rodrigues

LogicMonitor Staff
  • Posts

    161
  • Joined

  • Last visited

Community Answers

  1. Michael Rodrigues's post in Trouble with Fortigate PropertySource script was marked as the answer   
    @mhashemi change "list.Add" to "list.add" without a capital "A" and it should work.
  2. Michael Rodrigues's post in Groovy script Multi-Threading? was marked as the answer   
    @Austin Culbertson one of the module engineers mentioned that VMware_vCenter_VMPerformance is multi-threaded, and maybe a bit cleaner than than SO link.

    ctrl-f for "Executors" in the collection script.
  3. Michael Rodrigues's post in Groovy WMI documentation was marked as the answer   
    It will automatically pull in wmi.user/pass.

    Here are some recent javadocs: https://www.logicmonitor.com/support-files/javadocs/28606/com/santaba/agent/groovyapi/win32/package-summary.html
  4. Michael Rodrigues's post in Groovy Expect Scripting -- "]$" prompts was marked as the answer   
    @Joe Tran you were close, you should be able to match it with this:

    '\\[.*\\]\\$'

    The expect() method actually takes a Java Pattern which is compiled down to a Regex object.

    You can see if your Pattern converts to the expected Regex by using:

    println Pattern.compile('yourpatternstring')

    We should really add a method that takes a plain old regex, sorry for any confusion. Let me know if the above doesn't work for you.
  5. Michael Rodrigues's post in How to find Average value of a metric/field for a particular time range was marked as the answer   
    Hi @Archana, I think we do what you're looking for, but the feature is sort of hidden.

    Open the expanded graph, then expand the instances pane at the bottom.

    On the right side of the instance pane, there's another downward pointing arrow. If you click on that arrow and select "Show Boundaries' you'll see min/max/avg for each instance for the selected time range.
     
     

    You may have to aggregate instances into one to get the average across multiple instances.
  6. Michael Rodrigues's post in Effective Disk Monitoring was marked as the answer   
    Hey Nick,
    You should be able to do this with a Complex Datapoint and Datapoint Expressions: https://www.logicmonitor.com/support/datasources/creating-managing-datasources/datapoint-expressions/

    Something like:
    if( and( gt(StorageUsed, 90), lt(StorageSize, 5) ), 1, 0)


    Then just set an alert threshold if that Complex Datapoint returns 1.

    -Michael