Ad Widget

Collapse

Autoregistration actions - Host name matches won't match regex or string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LaChagnasse
    Junior Member
    • Sep 2020
    • 4

    #1

    Autoregistration actions - Host name matches won't match regex or string

    Hi everyone,

    I'm trying to do a simple thing yet can't manage to do it. We use regex all over zabbix but i can't get my autoregistration rule to work :

    Click image for larger version  Name:	Capture.JPG Views:	22 Size:	32.9 KB ID:	409172

    I tried every regex i thought of, ^.*replic.*sc.*$ /.*replic.*sc.*/i replic.*sc
    I'm testing with an host which host name is test-REPLic-Sc-test

    We have a lot of old and new naming conventions so i want it to be case insensitive and if it matches, to add the host to a group and a template. It's currently working if i use "CONTAINS" instead of "MATCHES", but i have to specify each case with OR calculation and i can't do this for every actions...

    I have another action which add the host to zabbix just fine.

    Documentation isn't helping and i know it should work it has been implemented

    Any help will be very much appreciated
    Last edited by LaChagnasse; 25-09-2020, 11:36.
  • LaChagnasse
    Junior Member
    • Sep 2020
    • 4

    #2
    Guess i don't know regex as much as i thought, it was a stupid regex issue. (?i) -> usual flag /i

    Comment

    Working...