Skip to content

Zabbix agent does not sending data - Unsupported item key #162

@liashukvladyslav

Description

@liashukvladyslav

Cannot fetch data from server with 2 attached directly disks from zabbix server.

Running perl discovery script itself on monitored node as a zabbix user returns data correctly

# sudo -u zabbix sudo /etc/zabbix/scripts/smartctl-disks-discovery.pl

{
	"data":[
		{
			"{#DISKMODEL}":"SAMSUNG MZ7LM480HMHQ-00005",
			"{#DISKSN}":"S2UJNX0M502684",
			"{#DISKNAME}":"/dev/sda",
			"{#DISKCMD}":"/dev/sda -d sat",
			"{#SMART_ENABLED}":"1",
			"{#DISKTYPE}":"1"
		},
		{
			"{#DISKMODEL}":"SAMSUNG MZ7LM480HMHQ-00005",
			"{#DISKSN}":"S2UJNX0M506845",
			"{#DISKNAME}":"/dev/sdb",
			"{#DISKCMD}":"/dev/sdb -d sat",
			"{#SMART_ENABLED}":"1",
			"{#DISKTYPE}":"1"
		}
	]
}

Attempt to fetch same data from zabbix server
zabbix_get -s 1.2.3.4 -p 10050 -k uSSD.discovery[""] ZBX_NOTSUPPORTED: Unsupported item key.

From monitored server zabbix-agent logs (debug level):

10829:20210412:134723.739 Requested [uSSD.discovery[]]
10829:20210412:134723.739 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]

Zabbix server version 4.2.8

Montiored server details:

  • Zabbix-agent version 4.4.10 (previosly 3.4.x -same result)
  • Centos 7
  • smartmontools 7.0-2.el7

Side note: same setup, though with older smartmontools and zabbix-agent working correctly on other monitored Centos 6-based server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions