Ad Widget

Collapse

BUG: str() trigger function won't accept hyphens (dashes)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monsieurcanard
    Member
    • Mar 2007
    • 40

    #1

    BUG: str() trigger function won't accept hyphens (dashes)

    Hello,

    I'm using Zabbix v1.38. When I try to add the following trigger:

    Code:
    {DirectAdmin_t:vfs.file.perms[/etc/virtual/domainowners].str(-rw-r--r--)}=0
    I get the following error message:

    Code:
    * Expression [{DirectAdmin_t:vfs.file.perms[/etc/virtual/domainowners].str(-rw-r--r--)}] does not match to [server:key.func(param)]
    However, the following does work:
    Code:
    {DirectAdmin_t:vfs.file.perms[/etc/virtual/domainowners].str(drwxrwxrwx)}=0
    So it seems like the str() functions won't accept hypens ("-"). Is this a known bug?

    Many thanks,
    Matt
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    This is a known issue. It will be fixed in 1.4.1.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • tronite
      Senior Member
      • Jun 2007
      • 147

      #3
      Originally posted by Alexei
      This is a known issue. It will be fixed in 1.4.1.
      Is there no patch for this yet on the current version?

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        There is no patch yet. The patch will be very complex as we plan to introduce support of quotes in trigger expressions, macros, remote commands, etc.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • monsieurcanard
          Member
          • Mar 2007
          • 40

          #5
          Brilliant, thanks Alexei. For the moment I'll grep out the hyphens in the UserParameter, would should work as a nice work-around.

          Comment

          Working...