Ad Widget

Collapse

Import of some triggers (with "<" and ">") broken ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jackill
    Junior Member
    • Oct 2008
    • 4

    #1

    Import of some triggers (with "<" and ">") broken ?

    Hello !


    I found that import of triggers with < and > (&lt; &gt; in XML) doesn't work now (zabbix 1.6.1, 1.6.2).
    But some month ago (zabbix 1.4.x, older libraries) it was OK, i swear !
    You can see this bug on Symmetra.xml from Wiki, for example.


    Incorrect trigger expression. [ ... ... 18]
    Incorrect trigger expression. [ ... ... 25]
    Incorrect trigger expression. [ ... ... 2.48]
    Incorrect trigger expression. [ ... ... 5.66]
    Incorrect trigger expression. [ ... ... 4.14]
    Incorrect trigger expression. [ ... ... 18]
    Incorrect trigger expression. [ ... ... 18]
    Incorrect trigger expression. [ ... ... 18]
    Host [Symmetra PX40] updated

    My current libraries:
    libxml2-2.7.3, expat-2.0.1, php5-5.2.8

    Any suggestions ?
  • Aly
    ZABBIX developer
    • May 2007
    • 1126

    #2
    Hmm just tested on pre 1.6.3, imported this xml, without any problems..
    Zabbix | ex GUI developer

    Comment

    • Jackill
      Junior Member
      • Oct 2008
      • 4

      #3
      Problem with "predefined entity" in XML - if I manually replace "&gt;" to ""&#62;", then triggers adds successfully.

      After another try of googling, i found some info:


      Documentation (http://ru.php.net/manual/ru/xml.requirements.php ) said that XML parser extensions depends on expat, but FreeBSD ports dependency said another:
      pkg_info -r php5-xml-5.2.8
      Information for php5-xml-5.2.8:

      Depends on:
      Dependency: pkg-config-0.23_1
      Dependency: libiconv-1.11_1
      Dependency: libxml2-2.7.3
      Dependency: php5-5.2.8

      Comment

      • Jackill
        Junior Member
        • Oct 2008
        • 4

        #4
        I rebuild php5-xml-5.2.8 with key "-with-libexpat-dir" - and now import works fine !

        Be careful with update of software !
        This was bug:

        Comment

        Working...