Ad Widget

Collapse

SMART function after upgrade.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mamukerka
    Junior Member
    • May 2021
    • 2

    #1

    SMART function after upgrade.

    Hello! Recently I upgraded Zabbix server from 5.0 to 5.2.6 and then to 5.4. I want to use out-of-the-box function of SMART monitoring.
    After update everything seems fine, but I can't add new templates to Zabbix, where I can see SMART parameters. I try to download it from Git branch, these templates in *.yaml format, and when I try to import it in Zabbix (Configuration >> Templates >> Import) I get an error - "Import failed. Cannot read YAML: Invalid YAML file contents". At the bottom of the screen of Zabbix GUI, version is correct - 5.4.0. The host machine has Zabbix agent2 and Smartmontools 7.2 installed, everything works fine.
    Sorry if this is too noob question, maybe I'm just doing something wrong?
  • Sara.Art
    Member
    • Jun 2020
    • 52

    #2
    Hi Mamukerka, got the same error. Have you tried to copy and paste the code on notepad and then save it as nameyouwishtemplate.yaml and try to import? Have anice day, Sara

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      Originally posted by Mamukerka
      Hello! Recently I upgraded Zabbix server from 5.0 to 5.2.6 and then to 5.4. I want to use out-of-the-box function of SMART monitoring.
      After update everything seems fine, but I can't add new templates to Zabbix, where I can see SMART parameters. I try to download it from Git branch, these templates in *.yaml format, and when I try to import it in Zabbix (Configuration >> Templates >> Import) I get an error - "Import failed. Cannot read YAML: Invalid YAML file contents". At the bottom of the screen of Zabbix GUI, version is correct - 5.4.0. The host machine has Zabbix agent2 and Smartmontools 7.2 installed, everything works fine.
      Sorry if this is too noob question, maybe I'm just doing something wrong?
      Hi Mamukerka!

      That sounds like the YAML file has errors in it or is not well-formed.

      You might want to try one of the online YAML verification or formatting tools to see if you can identify if the problem is something with the file itself.

      If you can program in Python, perl, ruby, or some other scripting language, you can also try using that language's YAML module to just import the template into a simple script, to see if you language's module can parse it.

      Comment

      Working...