Ad Widget

Collapse

Zabbix 1.1.5 - Triggers with dashes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix 1.1.5 - Triggers with dashes

    Is anyone having problems adding triggers with dashes in the parameter keys using zabbix 1.1.5?
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    Sorry I meant to post this in the problems section of the forum.

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      Found the problem. In config.inc.php changed error check expression from the orignial to the modified below. See red for changes.

      Original:

      HTML Code:
       if (eregi('^\{([0-9a-zA-Z\_\.-\$]+)\:([]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
                      {
                              $host=$arr[1];
                              $key=$arr[2];
                              $function=$arr[3];
                              $parameter=$arr[4];

      Change to:
      if (eregi('^\{([0-9a-zA-Z\_\.\$-]+)\[]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
      {
      $host=$arr[1];
      $key=$arr[2];
      $function=$arr[3];
      $parameter=$arr[4];

      Finall Code:
      HTML Code:
      if ([COLOR=Red]eregi('^\{([0-9a-zA-Z\_\.\$-]+)\[/COLOR]:([]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
                      {
                              $host=$arr[1];
                              $key=$arr[2];
                              $function=$arr[3];
                              $parameter=$arr[4];
      Last edited by Palmertree; 28-01-2007, 01:35.

      Comment

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

        #4
        Please see http://www.zabbix.com/forum/showthread.php?t=4989
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...