Ad Widget

Collapse

importing template error - Field "parent_itemid" cannot be set to NULL.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cvee.it
    Member
    • Nov 2010
    • 45

    #1

    importing template error - Field "parent_itemid" cannot be set to NULL.

    While trying to import "Template_Net_Cisco_SNMPv2_3.4.5.xml" https://share.zabbix.com/network_dev...-net-cisco-ios I received the error below.
    This is an upgraded Zabbix from 3.2 Centos 7, to a new server running/upgraded to 3.4.9 on Centos 7.

    I know/pretty sure this works without issue on new implementations, but via my current upgrade path at this client received the below.
    All templates from the module pack from zabbix share have been imported. https://share.zabbix.com/official-te...e-modules-pack


    Error:
    • Undefined offset: 12649 [conf.import.php:167 → CFrontendApiWrapper->import() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createEntitiesWithDependency() → CItemPrototype->create() → CItemPrototype->inherit() → CItemGeneral->prepareInheritedItems() in include/classes/api/services/CItemGeneral.php:1017]
    • Field "parent_itemid" cannot be set to NULL.

  • wnezab
    Junior Member
    • Jun 2018
    • 1

    #2
    I do have similar errors with different offset and line numbers.

    Code:
    Undefined offset: 10661 [conf.import.php:167 →
    CFrontendApiWrapper->import() → CApiWrapper->__call() →
    CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() →
    CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() →
    call_user_func_array() → CConfiguration->import() →
    CConfigurationImport->import() →
    CConfigurationImport->processDiscoveryRules() →
    CConfigurationImport->createEntitiesWithDependency() →
    CItemPrototype->create() → CItemPrototype->inherit() →
    CItemGeneral->prepareInheritedItems() in
    include/classes/api/services/CItemGeneral.php:1022]
    Code:
    Undefined offset: 10662 [conf.import.php:167 →
    CFrontendApiWrapper->import() → CApiWrapper->__call() →
    CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() →
    CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() →
    call_user_func_array() → CConfiguration->import() →
    CConfigurationImport->import() →
    CConfigurationImport->processDiscoveryRules() →
    CConfigurationImport->createEntitiesWithDependency() →
    CItemPrototype->create() → CItemPrototype->inherit() →
    CItemGeneral->prepareInheritedItems() in
    include/classes/api/services/CItemGeneral.php:1022]
    what I found out that it is somehow related to Discovery (well, actually in all error messages does processDiscoveryRules() exist). If I disable Discovery rules in the import page then it imports without error.

    Comment

    • cvee.it
      Member
      • Nov 2010
      • 45

      #3
      So FYI

      I worked around the problem by exporting the individual templates within the cisco import that was failing from a new install instance i have at home.
      Individually importing the cisco templates was successful. Then when I retried the original template that was failing, there was no error.

      Hope that helps someone in the future.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        A bug in Zabbix, tracked at https://support.zabbix.com/browse/ZBX-14865 .
        Zabbix 3.0 Network Monitoring book

        Comment

        Working...