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

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

Open
liashukvladyslav opened this issue Apr 12, 2021 · 3 comments
Open

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

liashukvladyslav opened this issue Apr 12, 2021 · 3 comments

Comments

@liashukvladyslav
Copy link

liashukvladyslav commented Apr 12, 2021

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.

@dazgluk
Copy link

dazgluk commented May 1, 2021

Having the same issue on Ubuntu 20.04 LTS and Zabbix 4.4.6

@dazgluk
Copy link

dazgluk commented May 3, 2021

Fixed an issue for my self, there was a permission issue, zabbix user had no access to newly created /etc/zabbix/conf.d/ file

@proteus88
Copy link

Had the same problem "Unsupported item key", the zabbix agent config file did not know about the zabbix_smartctl.conf file, I had to add this line
Include=/etc/zabbix/zabbix_agentd.d/*.conf

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

3 participants