nobody43 / zabbix-smartmontools

Disk SMART monitoring for Linux, FreeBSD and Windows. LLD, trapper.
The Unlicense
54 stars 19 forks source link

Cannot create item: item with the same key #12

Closed seregawerewolf closed 1 year ago

seregawerewolf commented 5 years ago

After installation in "detection" of a host hangs an exclamation mark with an error: Cannot create item: item with the same key "smartctl.info[{#DDRIVESTATUS},DriveStatus]" already exists.

Who can faced a problem?

nobody43 commented 5 years ago

Everyone are facing this problem. :) It's a cosmetic problem, it will not affect the result, though a solution is planned - #7.

Are you getting keys created in web interface? Data acquisition after 12-24 hours? What about Testing?

seregasoft commented 3 years ago

Hi! There is no such error on the first server, LLD creates items and data arrives. But the error "Cannot create item: item with the same key "smartctl.info[{#DDRIVESTATUS},DriveStatus]" already exists" appears on the second server. LLD creates items but I don't receive data. Where should sender_wrapper.py be? Or is it not the problem? OS: FreeBSD

nobody43 commented 3 years ago

This is expected, it should not interfere with the actual process. What about previous suggestions? sender_wrapper.py should be at: /usr/local/etc/zabbix/scripts/sender_wrapper.py

seregasoft commented 3 years ago

Thanks, "smartctl.discovery [getverb, "my_host"]" helped solve the problem: Error was: "my_host" smartctl.info [ConfigStatus] "CONFIGURED" zabbix_sender [54746]: DEBUG: send value error: cannot resolve [old_zabbix_host]

For some reason zabbix-smartmontools used the old zabbix agent configuration /usr/local/etc/zabbix22/zabbix_agentd.conf where old_zabbix_host was specified Although the current configuration in /usr/local/etc/zabbix5/zabbix_agentd.conf

Changed in /usr/local/etc/zabbix22/zabbix_agentd.conf Server and ServerActive to the actual address of Zabbix Server and now the data values come. Thank!

nobody43 commented 1 year ago

Supersedes: https://github.com/nobody43/zabbix-smartmontools/issues/7