DX Unified Infrastructure Management

 View Only
  • 1.  Logmon profile regex issue

    Posted Jan 25, 2021 03:49 AM
    Could you please help me ,I tried to create regex for below mentioned output. But there is no luck.

    Logmon profile output:-

    Server printmaster is ACTIVE
    Server netmaster is ACTIVE
    Server xmlserver is ACTIVE
    Server uqserver is ACTIVE
    Server uqserver_sc is ACTIVE
    Server mailer is ACTIVE

    Alarm should be generterated if any server missing in scripts. 

    Thanks in advance !

    Akash Saini




  • 2.  RE: Logmon profile regex issue

    Posted Jan 25, 2021 10:11 AM
    Hi Folks ,

    Any one please help me out. Thanks !

    Akash Saini


  • 3.  RE: Logmon profile regex issue

    Posted Jan 25, 2021 10:22 AM
    Logmon operates on a line of text. So it's not going to be able to tell you if something is missing from a full file or set of output. 

    I would suggest that you modify your script that is generating the current output to do the test so that you get output like:

    Server printmaster is ACTIVE
    Server netmaster is ACTIVE
    Server xmlserver is ACTIVE
    Server uqserver is MISSING
    Server uqserver_sc is ACTIVE
    Server mailer is ACTIVE

    Then you can use logmon to alert on "MISSING"