大网数据广告活动
服务器运维问答

How to use SMART via Zabbix?

· 52CE 我爱测

I've been trying to use SMART tools for a time over zabbix, but I just cannot figure it out, why it's not working. Server: debian 10 4.19.0-17-amd64, zabbix: 6.0.0 Revision 5203d2ea7d Client: debian 11 5.10.0-0.bpo.12-amd64, zabb…

问题原文

原帖链接 · CptZsolt · CC BY-SA 4.0

I've been trying to use SMART tools for a time over zabbix, but I just cannot figure it out, why it's not working.

Server: debian 10 4.19.0-17-amd64, zabbix: 6.0.0 Revision 5203d2ea7d
Client: debian 11 5.10.0-0.bpo.12-amd64, zabbix: 6.0.0 Revision 5203d2ea7d

I installed agent2 and smartmontools on the client, altered the user settings. In the Zabbix web application on this particular client host I added the SMART by Zabbix agent 2 template (also updated the template file), and thus I can see its inheritant macros in the settings.

However whatever I do, the only value I get from this host is this:

It doesn't matter where I look for the values, this empty variable is all I get.

I tried to look it up online, but everyone else seems to get the needed values right away after adding the template. I simply cannot find any else settings in the Zabbix control panel... Does anyone have any idea what am I missing?

已采纳解答

原帖链接 · CptZsolt · CC BY-SA 4.0

Alright, so it looks like Debian 10 doesn't support smartmontool above v6.6, but the -j tag which zabbix sends is only available from v7.

On a debian 11 client I could finally make it work, though the update time is pretty slow, so only now I saw the incoming data.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2024-03-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。