DX Unified Infrastructure Management

 View Only
  • 1.  Regular Expression on jobs probe

    Posted Apr 27, 2022 10:46 AM
    Hi Everyone.

    I need monitoring a status job in AS400, this status apply for any active job.
    It must be applied to specific jobs and systems.

    This is the requirement:

    Status= TIMW
    Jobs= DEB_MONETA, AUENV_PREP, REF_CREDIT, QP0ZSPWP, DEB_NOMONE
    Subsystem= QBATCH, XASNOVED

    The configuration is...

    regexp_active_status = TIMW
    regexp_job_name = ^(DEB_MONETA|DEB_NOMONE|MONE_PARAL|QP0ZSPWP|AUENV_PREP|REF_CREDIT|QP0ZSPWP)
    regexp_subsystem_description = ^(QBATCH*|XASNOVED*)


    I don't know what i am doing wrong on the regular expression because this not work...

    Any recommendation?


  • 2.  RE: Regular Expression on jobs probe

    Posted Apr 27, 2022 12:06 PM
    Patterns are one of the things where UIM really falls down.

    You have to start with what pattern engine is actually being used - is it regex, Lua, Windows wildcard, etc. because there's lots of overlap in symbols and difference in meaning.

    If this is truly regex then your likely issue is in the usage of "*"

    So looking at your subsystem specifier "QBATCH*" actually means a Q followed by a B followed by a A followed by a T followed by a C followed by zero or more H

    Also usually in UIM you need to indicate regex with leading and trailing / characters.

    Also the ( and ) indicate a capture group and are unnecessary here.

    I would guess that you really want something like 

    /^QBATCH.*|^XASNOVED.*/