Error when disk goes down
who0ps opened this issue · comments
When one disk goes down, there was alerts. Only discovery error:
Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'INQUIRY command error: Host_status=0x01 [DID_NO_CONNECT]
{
"data":[
{
"{#DISKMODEL}":"Adaptec SYS",
"{#DISKSN}":"91BB26AD",
"{#DISKNAME}":
In zabbix logs:
91644:20211004:063321.517 item "server:uHDD.model.["/dev/sg7"]" became not supported: Preprocessing failed for: smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-10-amd64] (local build).Copyright (C) 2002-17,...
91644:20211004:063321.517 item "server:uHDD.sn.["/dev/sg7"]" became not supported: Preprocessing failed for: smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-10-amd64] (local build).Copyright (C) 2002-17,...
91644:20211004:063321.517 item "server:uHDD["/dev/sg7",Temperature_Celsius]" became not supported: Preprocessing failed for: smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-10-amd64] (local build).Copyright (C) 2002-17,...
91644:20211004:063321.517 item "server:uHDD.health["/dev/sg7"]" became not supported: Preprocessing failed for: smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-10-amd64] (local build).Copyright (C) 2002-17,...
91629:20211004:070207.131 discovery rule "server:uHDD.discovery["{$SMARTCTL_STATIC_DISKS}"]" became not supported: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object format, expected opening character '{' or '[' at: 'INQUIRY command error: Host_status=0x01 [DID_NO_CONNECT]
If run on device sudo /etc/zabbix/scripts/smartctl-disks-discovery.pl
:
INQUIRY command error: Host_status=0x01 [DID_NO_CONNECT]
{
"data":[
{
"{#DISKMODEL}":"Adaptec SYS",
"{#DISKSN}":"91BB26AD",
"{#DISKNAME}":"/dev/sda",
"{#DISKCMD}":"/dev/sda -d scsi",
"{#SMART_ENABLED}":"1",
"{#DISKTYPE}":"2"
},
(cut)
{
"{#DISKMODEL}":"",
"{#DISKSN}":"",
"{#DISKNAME}":"/dev/sg7",
"{#DISKCMD}":"/dev/sg7",
"{#SMART_ENABLED}":"0",
"{#DISKTYPE}":"2"
},
(cut)
sg7 - problem disk.