Ad Widget

Collapse

PATCH: Trigger creation fails when there is a space in the server name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skeenan
    Junior Member
    • May 2007
    • 2

    #1

    PATCH: Trigger creation fails when there is a space in the server name

    When creating a new trigger in ZABBIX 1.3.8, it fails with "Expression [$expression] does not match to [server:key.func(param)]" when there is a space in the server name

    root@ops01:/var/www/html/zabbix/include# diff triggers.inc.php*
    Code:
    173c173
    <       '^\{([0-9a-zA-Z\_\.[.-.]\$\ ]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');
    ---
    >       '^\{([0-9a-zA-Z\_\.[.-.]\$]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');
    Last edited by skeenan; 22-05-2007, 21:30. Reason: Add version #
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for rerpoting this. It was already fixed in the latest SVN code today.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    Working...