Ad Widget

Collapse

Autoregistration not working as expected

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Autoregistration not working as expected

    Hi,

    I'm struggling to get autoregistration working correctly.

    I have 2 rules under action for autoregistration to distinguish between hostnames.

    Our hostnames contain a letter v for virtual or a p for physical machines. Some physical machines might not have a p in their name but all virtual ones do.

    example:

    gedadvl100 = virtual
    gedadpl100 = physical

    so the two rules are as follows:

    hostname not like gedadvl
    add to group physical

    hostname like gedadvl
    add to group virtual

    But it looks like is not doing what it should. Machines with gedadvl are added to the physical hostgroup. I have tried using regex like:

    [[:upper:]^gedadvl][0-9]{0,4}

    and saved it under regular expressions and the test works fine.

    Can I use a regex here?

    #2
    Anyone?

    I mean this would be great. But Host name not like doesn't seem to accept regex.

    Comment


      #3
      Ok, I have now skipped using the autoregistration as it is not working as expected.

      Is it possible to use one discovery rule with two zabbix agent keys?

      e.g.

      sytem.hostname and system.uname?

      I tried it and it doesn't seem to work.

      Comment


        #4
        I stumbled upon the same issue. I looked at the sources and apparently Zabbix only does substring match instead of regex one. Reported here https://support.zabbix.com/browse/ZBX-5199

        Comment

        Announcement

        Collapse
        No announcement yet.
        Working...
        X