Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15089

Zabbix Agent Configuration -- Alias not allowed range

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't fix
    • Affects Version/s: 4.0 (plan)
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:

      Description

      Hello , 

       

      I`m a user of Zabbix. I found a bug while I was configuring my agent. The "Alias" item is not allowed to use regex range?

       

      Here is my sample :

       

      Zabbix_agent.conf:

       

      Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.[0-9]+),,,,\1]

       

      Then I started my agentd , and it reported an issue,

       

      zabbix_agentd [12369]: ERROR: cannot add alias "zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.[0-9]+),,,,\1]": invalid character at position 59

       

      But after I modified the [0-9] to \d , it works.

       

      Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:(\d+),,,,\1]

       

      Is that an issue ?

       

       

        Attachments

          Activity

            People

            • Assignee:
              vso Vladislavs Sokurenko
              Reporter:
              gingu guwenbo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: