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

Problem with triggers import

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.6
    • 1.6
    • None
    • None

      There is a problem with export/import triggers based on

      {HOSTNAME} macro.

      We create item with {HOSTNAME}

      macro and then we create trigger based on it. Export of such template goes OK. During import procedure everything goes OK (Import cuccessfully) but into log details we receive an error

      Added new item Template_netia_oracle_DB_TS_template1:netia.oracle.db[

      {HOSTNAME},tablespace,template,used]
      No such monitored parameter (netia.oracle.db[Template_netia_oracle_DB_TS_template1,tablespace,template,freep]) for host (Template_netia_oracle_DB_TS_template1)
      No such monitored parameter (netia.oracle.db[Template_netia_oracle_DB_TS_template1,tablespace,template,freep]) for host (Template_netia_oracle_DB_TS_template1)
      No such monitored parameter (netia.oracle.db[Template_netia_oracle_DB_TS_template1,tablespace,template,free_dsk]) for host (Template_netia_oracle_DB_TS_template1)

      An XML triggers section looks like that

      <triggers>
      <trigger>
      <description>Netia.oracle.ts.freep Space alert</description>
      <type>0</type>
      <expression>{{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,auto].last(0)}=0 & {{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,freep].last(0)}<10</expression>
      <url></url>
      <status>0</status>
      <priority>3</priority>
      <comments></comments>
      </trigger>
      <trigger>
      <description>Netia.oracle.ts.freep Space {ITEM.LASTVALUE}</description>
      <type>0</type>
      <expression>{{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,freep].last(0)}<15 & {{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,freep].last(0)} > 10</expression>
      <url></url>
      <status>0</status>
      <priority>2</priority>
      <comments></comments>
      </trigger>
      <trigger>
      <description>Netia.oracle.ts.freep Space error</description>
      <type>0</type>
      <expression>{{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,auto].last(0)}>0 & {{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,free_extp].last(0)}<10 | {{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,auto].last(0)}>0 & {{HOSTNAME}

      :netia.oracle.db[

      {HOSTNAME},tablespace,template,free_dsk].last(0)}<15000000000</expression>
      <url></url>
      <status>0</status>
      <priority>4</priority>
      <comments></comments>
      </trigger>

      There is a problem with second elicitation of {HOSTNAME}

      macro

            sasha Alexander Vladishev
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: