Ad Widget

Collapse

LLD : Regexp too long....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syndeysider
    Senior Member
    • Oct 2013
    • 115

    #1

    LLD : Regexp too long....

    Hi All

    Zabbix 2.0.7

    I have an LLD that runs that identifies process.exe on my windows hosts. The item prototypes in turn return process information name, performance stats, availability etc.

    Awesome.

    What's not awesome is returning 100's of processes per windows host. I created a regular expression @WindowsProcesses with the filter :

    ^(sqlservr.exe|sqlwriter.exe|sqlbrowser.exe|UnivAg ent.exe|SQLAGENT90.exe|searchindexer.exe|zabbix_ag entd.exe|vmtoolsd.exe|snmp.exe|mcshield.exe|mfeann .exe|ZenworksWindowsServer.exe|ZESService.exe|ZESU ser.exe|ZenUserDaemon.exe|ZCMUMHelper.exe)$

    Which covers about 1/4 of the processes I am interested in. I realise i could markup the regexp to be more intelligent e.g. ZES* etc. but the source of this is controlled external to Zabbix.

    Question

    Is there a way to a) stipulate more than one Regexp for the LLD Filter? b) Increase the length of the regular expression by combining regexp's?
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Just add as many regexps as you want.
    Attached Files

    Comment

    • syndeysider
      Senior Member
      • Oct 2013
      • 115

      #3
      The result is only TRUE if the sum of the expressions entered = TRUE.

      e.g.

      Expr1 = ^(sqlserver.exe|notepad.exe)$ (Expression type: RESULT IS TRUE)
      Expr2 = ^(wordpad.exe|explorer.exe)$ (Expression type: RESULT IS TRUE)

      Test string : notepad.exe

      Expr1=TRUE
      Expr2=FALSE
      Result=FALSE

      The only way to do this seems to be :

      a) identify all the processes running on all 300 windows servers
      b) Expr1 = ^(invalidprocess.exe|notrequired.exe|dontneed.exe) $ (Expression type: RESULT IS FALSE) etc.

      Seems like alot of work. What am i missing?

      Comment

      Working...