Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when disk goes down #167

Open
who0ps opened this issue Oct 4, 2021 · 0 comments
Open

Error when disk goes down #167

who0ps opened this issue Oct 4, 2021 · 0 comments

Comments

@who0ps
Copy link

who0ps commented Oct 4, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant