DX Unified Infrastructure Management

  • 1.  logmon 

    Posted Mar 13, 2019 04:03 PM

    Hello Experts, we need an alert to trigger when the SystemLoadAverage reaches to 1.4

    file example:

    TimeStamp = 3/13/19 2:59 PM ; NextDelay = 30

    Memory

    HeapMemoryUsage = {used = 1024223920}{max = 3178758144} ; NonHeapMemoryUsage = {init = 2555904}{committed = 195952640} ;

    Threading

    PeakThreadCount = 266 ; ThreadCount = 237 ;

    OperatingSystem

    SystemLoadAverage = 0.1 ;

     

    we have this regex match expression SystemLoadAverage\s+=\s+([\d.])   but I am not sure on how to create a variable for this.  can someone please help me with this?  thanks



  • 2.  Re: logmon 

    Posted Mar 13, 2019 04:30 PM

    Hi Juan8A!

    You should be able to add in the Variables tab a watcher rule a new variable.  Set the 'Source FROM Position' to use "Match Expression" and then set the position to correspond with the capture group you have set-up in your regex.

     

    -DC



  • 3.  Re: logmon 

    Broadcom Employee
    Posted Mar 13, 2019 09:37 PM


  • 4.  Re: logmon 

    Posted Mar 14, 2019 09:40 AM

    As an alternative, you are already using logmon to get this information, why not use logmon to run a script instead of looking at the contents of a file directly and then in that script calculate the load average and then print GOOD/BAD (or something like that) and then you can have two simple matches on that printed text. 

     

    -Garin