Ad Widget

Collapse

Template Import throws error but doesn't indicate where

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bitbucket
    Junior Member
    • Sep 2020
    • 18

    #1

    Template Import throws error but doesn't indicate where

    Trying to import the following template into Zabbix 5.0 results in the error "Incorrect value for field "history": value must be one of 0, 3600-788400000.". Some of the history values do use suffixes for days/weeks and I tried converting all of those into integers to no effect. Perhaps there's an entry that should explicitly include a history value? Regardless, I can't tell where in the file the problem lies. What's the best way to debug this?

  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    The error message is really non-intuitive. Basically, it says "the history value maybe either zero or something between 1 hour and 25 years". The suffixes is not a problem, Zabbix supports them. But the "15" and "30" are treated as seconds. They are probably a typo and should be suffixed with "d".

    Comment

    • bitbucket
      Junior Member
      • Sep 2020
      • 18

      #3
      Perfect! That was it. Thanks for the help.

      Comment

      Working...