DX Unified Infrastructure Management

  • 1.  Logmon: How do I capture multi-line response from a command?

    Posted Aug 19, 2010 11:32 PM

    I am using the logmon probe to execute a .vbs file that returns back a list of files separated by a carriage return.  I am using logmon and a script because DirScan does not offer the ability to list out the files it finds.  The return text looks like this:

     

    3 File(s) were found in "Directory Name":

     

    Filename1

    Filename2

    Filename3

     

    I want to be able to capture the whole text to be used in an email alert.  So, is capturing a multi line response supported by the logmon probe?  If so, how would i configure it propery?  If not, any additional suggestions other than formatting the output to be a single line that I would split in a lua script?  Thanks!

     

    -Keith



  • 2.  Re: Logmon: How do I capture multi-line response from a command?

    Posted Sep 01, 2010 12:36 PM
    configure logmon to expect "x" lines and hook up that your are expecting multilines. Set the filter with regular expression \s cause they glue the lines together with a white space. Hope that helps best regards


  • 3.  Re: Logmon: How do I capture multi-line response from a command?