Ad Widget

Collapse

Import Template resuts in "Invalid parameter "/3/trends": value must be 0."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shinduke
    Junior Member
    • Nov 2022
    • 14

    #1

    Import Template resuts in "Invalid parameter "/3/trends": value must be 0."

    Hello,

    i´m trying to create an Template for our backup environement. I have created an XML file via an howto where you convert a MIB file with mib2zabbix into an XML file.
    When i try to import this into Zabbix i get the error
    • Invalid parameter "/3/trends": value must be 0.
    ​Can someone tell me what exactly is wrong? Any Help would be awesome
    Attached Files
  • Shinduke
    Junior Member
    • Nov 2022
    • 14

    #2
    Update:
    Have found a solution here https://www.zabbix.com/forum/zabbix-...meter-2-trends

    Now facing the issue
    • Invalid parameter "/101/valuemapid": value must be 0. [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImport->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createItemsWithDependency() → CItemPrototype->create() → CItemPrototype::validateCreate() → CApiService::exception() in include/classes/api/services/CItemPrototype.php:434]
    Last edited by Shinduke; 20-07-2023, 09:36.

    Comment

    • jasonsuda
      Junior Member
      • Jul 2023
      • 1

      #3
      same issue...
      Invalid parameter "/101/valuemapid": value must be 0
      do you have any update for this?

      Comment

    • svilches
      Junior Member
      • Aug 2023
      • 1

      #4
      Originally posted by Shinduke
      Update:
      Have found a solution here https://www.zabbix.com/forum/zabbix-...meter-2-trends

      Now facing the issue
      • Invalid parameter "/101/valuemapid": value must be 0. [zabbix.php:22 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerPopupImport->doAction() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createItemsWithDependency() → CItemPrototype->create() → CItemPrototype::validateCreate() → CApiService::exception() in include/classes/api/services/CItemPrototype.php:434]
      The same thing happens to me, were you able to solve it? Thanks in advance

      Comment

      • surfrock66
        Member
        • Jul 2018
        • 30

        #5
        FYI, I patched this tool to catch that case, if it detects a value_type of 4 it sets the trends to 0. It also lets you specify MIBs by directory or filename:

        SNMP Template generator for Zabbix. Contribute to surfrock66/mib2zabbix development by creating an account on GitHub.

        Comment

        Working...