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

Error on linux: Value should be a JSON object. #108

Closed TiratoreA closed 5 years ago

TiratoreA commented 5 years ago

image smartctl --scan-open /dev/sda -d scsi # /dev/sda, SCSI device /dev/sdb -d sat # /dev/sdb [SAT], ATA device /dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device /dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device /dev/bus/0 -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device /dev/bus/0 -d megaraid,3 # /dev/bus/0 [megaraid_disk_03], SCSI device /dev/bus/0 -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device /dev/bus/0 -d megaraid,5 # /dev/bus/0 [megaraid_disk_05], SCSI device /dev/bus/0 -d megaraid,6 # /dev/bus/0 [megaraid_disk_06], SCSI device /dev/bus/0 -d megaraid,7 # /dev/bus/0 [megaraid_disk_07], SCSI device

Hyrla commented 4 years ago

Hey, I have the same problem, how did you solve it ? Thank you

TiratoreA commented 4 years ago

Copy zabbix_smartctl.conf to /etc/zabbix/zabbix_agentd.d Copy script smartctl-disks-discovery.pl to /etc/zabbix/scripts Then run chown zabbix:zabbix /etc/zabbix/scripts/smartctl-disks-discovery.pl chmod u+x /etc/zabbix/scripts/smartctl-disks-discovery.pl chown root.sys /usr/sbin/smartctl usermod -a -G sys zabbix chmod u+s /usr/sbin/smartctl chown root.sys /usr/bin/sg_scan chmod u+s /usr/bin/sg_scan

пн, 23 мар. 2020 г. в 23:05, Gauthier HEISS notifications@github.com:

Hey, I have the same problem, how did you solve it ? Thank you

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/v-zhuravlev/zbx-smartctl/issues/108#issuecomment-602855684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJC2X7MFP56MROL24PFWXDRI7FKFANCNFSM4H5W3BUQ .

-- Андрей Штыволока