Ad Widget

Collapse

Problem exporting/importing templates from zabbix 5.0 to 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stevec
    Junior Member
    • Jul 2020
    • 7

    #1

    Problem exporting/importing templates from zabbix 5.0 to 6.0

    Template Name: ServerTech Power Cord Input
    Template item is this: SNMP OID: enterprises.1718.4.1.4.3.1.3.1.1.1
    My trigger is this:
    Problem: {ServerTech Power Cord Input:LineCurrent.last()}>12
    Recovery: {ServerTech Power Cord Input:LineCurrent.min(15)}<11.5

    Upon importing my template, I get:

    Incorrect trigger expression. Host "ServerTech Power Cord Input" does not exist or you have no access to this host.

    I'm a zabbix_admin, so I have access to everything.

    If I eliminate all import rules to just items and graphs, I get:

    Undefined index: templates [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImport->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callC
    Cannot find item "LineCurrent" on "ServerTech Power Cord Input" used in graph "Input Power".

    Any idea what's going on here? Thanks.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    trigger expression format changed in 5.4, so this one does not work in 6.0 also... I don't think there is "on-the-fly" conversion if you import older templates...

    Comment


    • tikkami
      tikkami commented
      Editing a comment
      Some testing...
      Exported ICMP ping template from 5.0.10.
      Succesfully imported xml to 5.4.9 and 6.0.0.
  • stevec
    Junior Member
    • Jul 2020
    • 7

    #3
    If I upgrade from 5.0 to 5.4 and then go to 6.0, will the trigger upgrade with it, or will it be dropped?

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #4
      Upgrade will upgrade.. You can also go directly from 5.0 to 6.0, if your platform allows it (requirements are fulfilled).

      Comment

      • stevec
        Junior Member
        • Jul 2020
        • 7

        #5
        Thank you!!

        Comment

        Working...