v-zhuravlev / zbx-smartctl

Templates and scripts for monitoring disks health with Zabbix and smartmontools
https://share.zabbix.com/storage-devices/smartmontools/smart-monitoring-with-smartmontools-lld
GNU General Public License v3.0
245 stars 127 forks source link

"Unsupported item key" in Zabbix 5.0.7 #154

Open WillemBerr opened 3 years ago

WillemBerr commented 3 years ago

Hi,

I use zbx-smartctl with zabbix 5.0.7. I have 2 errors, and I have no idea how to fix them.

smartctl-disks-discovery (HDD) --> Item does not allow parameters. smartctl-disks-discovery (SSD) --> Unsupported item key.

Any ideas ?

Thank you

rjrouquette commented 3 years ago

Did you create and install the agent from the deb file? If so, there's a bug in the creation of the deb file that puts zabbix_smartctl.conf in the wrong agent configuration directory.

Running the following command and restarting the agent fix the issue for me. sudo mv /etc/zabbix/zabbix_agentd.conf.d/zabbix_smartctl.conf /etc/zabbix/zabbix_agentd.d/

WillemBerr commented 3 years ago

Hi @rjrouquette,

I've just try it, but it doesn't work.

root@xxxxx:/etc/zabbix# tree
.
├── scripts
│   └── smartctl-disks-discovery.pl
├── zabbix_agentd.conf
├── zabbix_agentd.conf.d
└── zabbix_agentd.d
    └── zabbix_smartctl.conf

3 directories, 3 files 

Here the message in the web interface

screen
mrPsycho commented 3 years ago