nobody43 / zabbix-mini-IPMI

Disk and CPU temperature monitoring for Linux, FreeBSD and Windows. LLD, trapper.
The Unlicense
91 stars 27 forks source link

"Unsupported item key" after upgrading from zabbix 5.0. to 5.4 #67

Closed packy closed 3 years ago

packy commented 3 years ago

Describe the problem Upgraded server from FreeBSD 12.1 to 12.2; zabbix web interface broke. Upgraded zabbix from 5.0 to 5.4. Web interface started working, but no longer able to monitor the server's temps. I get "Unsupported item key" when I try to use zabbix_get.

To Reproduce On server/client:

✔ daffy 11:26 # zabbix_get -s 192.168.1.11 -k mini.cputemp.discovery[get,"daffy"]
ZBX_NOTSUPPORTED: Unsupported item key.
✔ daffy 11:34 # /usr/local/etc/zabbix/scripts/mini_ipmi_bsdcpu.py getverb daffy
  Python version:
 3.7.9 (default, Feb  4 2021, 01:17:36)
[Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a

  Sender version:
 zabbix_sender (Zabbix) 5.4.1rc1
Revision {ZABBIX_REVISION} 14 May 2021, compilation time: May 20 2021 21:32:24

Copyright (C) 2021 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 1.1.1h-freebsd  22 Sep 2020
Running with OpenSSL 1.1.1h-freebsd  22 Sep 2020

  Config's main settings:
Server=192.168.1.11,127.0.0.1
ServerActive=192.168.1.11,127.0.0.1
Timeout = 30

  Please report any issues or missing features to:
https://github.com/nobodysu/zabbix-mini-IPMI/issues

✔ daffy 11:36 #
  Note: the sender will fail if server did not gather LLD previously.

  Data sent to zabbix sender:

"daffy" mini.cpu.temp[cpu0,core31] "56"
"daffy" mini.cpu.temp[cpu0,core30] "55"
"daffy" mini.cpu.temp[cpu0,core29] "61"
"daffy" mini.cpu.temp[cpu0,core28] "61"
"daffy" mini.cpu.temp[cpu0,core27] "57"
"daffy" mini.cpu.temp[cpu0,core26] "57"
"daffy" mini.cpu.temp[cpu0,core25] "56"
"daffy" mini.cpu.temp[cpu0,core24] "56"
"daffy" mini.cpu.temp[cpu0,core23] "58"
"daffy" mini.cpu.temp[cpu0,core22] "59"
"daffy" mini.cpu.temp[cpu0,core21] "58"
"daffy" mini.cpu.temp[cpu0,core20] "58"
"daffy" mini.cpu.temp[cpu0,core19] "55"
"daffy" mini.cpu.temp[cpu0,core18] "55"
"daffy" mini.cpu.temp[cpu0,core17] "55"
"daffy" mini.cpu.temp[cpu0,core16] "55"
"daffy" mini.cpu.temp[cpu0,core15] "74"
"daffy" mini.cpu.temp[cpu0,core14] "74"
"daffy" mini.cpu.temp[cpu0,core13] "75"
"daffy" mini.cpu.temp[cpu0,core12] "75"
"daffy" mini.cpu.temp[cpu0,core11] "76"
"daffy" mini.cpu.temp[cpu0,core10] "76"
"daffy" mini.cpu.temp[cpu0,core9] "76"
"daffy" mini.cpu.temp[cpu0,core8] "76"
"daffy" mini.cpu.temp[cpu0,core7] "73"
"daffy" mini.cpu.temp[cpu0,core6] "73"
"daffy" mini.cpu.temp[cpu0,core5] "77"
"daffy" mini.cpu.temp[cpu0,core4] "77"
"daffy" mini.cpu.temp[cpu0,core3] "74"
"daffy" mini.cpu.temp[cpu0,core2] "74"
"daffy" mini.cpu.temp[cpu0,core1] "75"
"daffy" mini.cpu.temp[cpu0,core0] "75"
"daffy" mini.cpu.info[cpu0,TjMax] "70"
"daffy" mini.cpu.temp[cpu0,MAX] "77"
"daffy" mini.cpu.temp[MAX] "77"
"daffy" mini.cpu.info[ConfigStatus] "CONFIGURED"
zabbix_sender [71884]: DEBUG: answer [{"response":"success","info":"processed: 2; failed: 34; total: 36; seconds spent: 0.000182"}]
Response from "192.168.1.11:10051": "processed: 2; failed: 34; total: 36; seconds spent: 0.000182"
zabbix_sender [71885]: DEBUG: answer [{"response":"success","info":"processed: 2; failed: 34; total: 36; seconds spent: 0.000170"}]
Response from "127.0.0.1:10051": "processed: 2; failed: 34; total: 36; seconds spent: 0.000170"
sent: 36; skipped: 0; total: 36

Expected behavior I had this working before I upgraded .

Provide all outputs described in Testing step

✔ daffy 11:41 # zabbix_get -s 192.168.1.11 -k mini.cputemp.discovery[get,"Example host"]
ZBX_NOTSUPPORTED: Unsupported item key.
✔ daffy 11:43 # zabbix_get -s 192.168.1.11 -k mini.disktemp.discovery[get,"Example host"]
ZBX_NOTSUPPORTED: Unsupported item key.

Please complete the following information:

Additional context

✔ daffy 11:38 # ls -l /usr/local/etc/zabbix/
total 179
-rw-r--r--  1 root  wheel   1940 May 20 21:38 libzbxpgsql.conf
drwxr-xr-x  2 root  wheel      3 May 20 21:37 modules
drwxr-xr-x  3 root  wheel      8 May 20 22:18 scripts
-rw-r--r--  1 root  wheel  15599 Jun 11 18:42 zabbix_agentd.conf
drwxr-xr-x  2 root  wheel      2 May 20 21:33 zabbix_agentd.conf.d
-rw-r--r--  1 root  wheel  15597 May 20 22:30 zabbix_agentd.conf.saved
-rw-r--r--  1 root  wheel  24172 May 20 22:14 zabbix_server.conf
drwxr-xr-x  2 root  wheel      2 May 20 21:34 zabbix_server.conf.d
-rw-r--r--  1 root  wheel   2668 May 20 21:52 zabbix_web_service.conf
✔ daffy 11:38 # ls -l /usr/local/etc/zabbix/scripts/
total 108
-rwxr-xr-x  1 root  wheel   4648 May 20 21:37 HL-3170CDW.pl
drwxr-xr-x  2 root  wheel      3 May 20 22:18 __pycache__
-rwxr-xr-x  1 root  wheel    615 Jun 11 18:38 ipmitool-wrapper
-rwxr-xr-x  1 root  wheel   3133 May 20 21:37 mini_ipmi_bsdcpu.py
-rwxr-xr-x  1 root  wheel  12026 May 20 21:37 mini_ipmi_smartctl.py
-rwxr-xr-x  1 root  wheel   7110 May 20 21:37 sender_wrapper.py
✔ daffy 11:38 # ls -l /usr/local/etc/zabbix/zabbix_agentd.conf.d/
total 0
✔ daffy 11:40 # perl -ne 's/#.*$//; print unless /^\s*$/;' /usr/local/etc/zabbix/zabbix_agentd.conf
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
DebugLevel=3
Server=192.168.1.11,127.0.0.1
ServerActive=192.168.1.11,127.0.0.1
Hostname=daffy
Timeout = 30
Include=/usr/local/etc/zabbix/zabbix_agentd.conf.d/*.conf
LoadModulePath = /usr/local/etc/zabbix/modules
✔ daffy 11:44 # perl -ne 's/#.*$//; print unless /^\s*$/;' /usr/local/etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
DebugLevel=3
PidFile=/var/run/zabbix/zabbix_server.pid
DBName=zabbix
DBUser=zabbix
DBPassword=**************
DBPort=5432
StartIPMIPollers=3
StartTrappers=10
StartDiscoverers=6
CacheSize=32M
Timeout=30
FpingLocation=/usr/local/sbin/fping
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
✔ daffy 11:45 # /usr/local/sbin/zabbix_server --version
zabbix_server (Zabbix) 5.4.1rc1
Revision {ZABBIX_REVISION} 14 May 2021, compilation time: May 20 2021 21:32:24

Copyright (C) 2021 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 1.1.1h-freebsd  22 Sep 2020
Running with OpenSSL 1.1.1h-freebsd  22 Sep 2020
✔ daffy 11:55 # ifconfig igb0
igb0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=a500b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6>
    ether b8:ca:3a:5d:a2:54
    inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Zabbix config screen of server/agent

Zabbix screen of mini-IPMI items

nobody43 commented 3 years ago

Hm. If it says unsupported - it's really unsupported. We are talking about single host right? Same releases of server and agent? Are custom keys present in effective keys output? client$ zabbix_agentd -p

packy commented 3 years ago

Yes, same host, same releases of server and agent.

✔ daffy 11:56 # zabbix_agentd -p
agent.hostname                                [s|daffy]
agent.ping                                    [u|1]
agent.version                                 [s|5.4.1rc1]
system.localtime[utc]                         [u|1623601373]
web.page.get[localhost,,80]                   [t|HTTP/1.1 200 OK
Date: Sun, 13 Jun 2021 16:22:53 GMT
Server: Apache/2.4.43 (FreeBSD) PHP/7.4.6
Last-Modified: Sun, 10 May 2020 14:53:23 GMT
ETag: "2d-5a54c646299eb"
Accept-Ranges: bytes
Content-Length: 45
Content-Type: text/html

<html><body><h1>It works!</h1></body></html>]
web.page.perf[localhost,,80]                  [d|0.00058960914611816406]
web.page.regexp[localhost,,80,OK]             [s|OK]
vfs.file.size[/etc/passwd]                    [u|3175]
vfs.file.time[/etc/passwd,modify]             [u|1621997781]
vfs.file.exists[/etc/passwd]                  [u|1]
vfs.file.contents[/etc/passwd]                [t|# $FreeBSD: releng/12.2/etc/master.passwd 359447 2020-03-30 17:07:05Z brooks $
#
root:*:0:0:Charlie &:/root:/bin/csh
...]
vfs.file.regexp[/etc/passwd,root]             [s|root:*:0:0:Charlie &:/root:/bin/csh]
vfs.file.regmatch[/etc/passwd,root]           [u|1]
vfs.file.md5sum[/etc/passwd]                  [s|788c891ed57193e856477710f205541d]
vfs.file.cksum[/etc/passwd]                   [u|2661169940]
vfs.dir.size[/var/log]                        [u|44223830779]
vfs.dir.count[/var/log]                       [u|132]
net.dns[,zabbix.com]                          [u|1]
net.dns.record[,zabbix.com]                   [t|zabbix.com           SOA      ines.ns.cloudflare.com dns.cloudflare.com 2037017794 10000 2400 604800 3600]
net.tcp.dns[,zabbix.com]                      [u|1]
net.tcp.dns.query[,zabbix.com]                [t|zabbix.com           SOA      ines.ns.cloudflare.com dns.cloudflare.com 2037017794 10000 2400 604800 3600]
net.tcp.port[,80]                             [u|1]
system.users.num                              [u|5]
log[logfile]                                  [m|ZBX_NOTSUPPORTED] [Accessible only as active check.]
log.count[logfile]                            [m|ZBX_NOTSUPPORTED] [Accessible only as active check.]
logrt[logfile]                                [m|ZBX_NOTSUPPORTED] [Accessible only as active check.]
logrt.count[logfile]                          [m|ZBX_NOTSUPPORTED] [Accessible only as active check.]
eventlog[system]                              [m|ZBX_NOTSUPPORTED] [Accessible only as active check.]
zabbix.stats[127.0.0.1,10051]                 [t|{"response":"success","data":{"boottime":1621563796,"uptime":2037577,"hosts":8,"items":953,"item_unsupported":215,"requiredperformance":10.818148,"preprocessing_queue":0,"lld_queue":0,"triggers":423,"vcache":{"buffer":{"total":8388232,"free":8283096,"pfree":98.746625,"used":105136,"pused":1.253375},"cache":{"requests":26918689,"hits":26917025,"misses":1664,"mode":0}},"rcache":{"total":33554432,"free":31053640,"pfree":92.547059,"used":2500792,"pused":7.452941},"version":"5.4.1rc1","wcache":{"values":{"all":451747404,"float":106098243,"uint":296052368,"str":54633,"log":14075,"text":49528085,"not supported":39992048},"history":{"pfree":100.000000,"free":16776840,"total":16776840,"used":0,"pused":0.000000},"index":{"pfree":94.013036,"free":3942824,"total":4193912,"used":251088,"pused":5.986964},"trend":{"pfree":97.241974,"free":4078624,"total":4194304,"used":115680,"pused":2.758026}},"process":{"poller":{"busy":{"avg":0.331398,"max":0.407021,"min":0.247138},"idle":{"avg":99.668602,"max":99.745612,"min":99.635796},"count":5},"unreachable poller":{"busy":{"avg":95.053819,"max":95.053819,"min":95.053819},"idle":{"avg":4.946181,"max":4.946181,"min":4.946181},"count":1},"ipmi poller":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":3},"icmp pinger":{"busy":{"avg":6.701097,"max":6.701097,"min":6.701097},"idle":{"avg":93.298903,"max":93.298903,"min":93.298903},"count":1},"http poller":{"busy":{"avg":0.038462,"max":0.038462,"min":0.038462},"idle":{"avg":99.961538,"max":99.961538,"min":99.961538},"count":1},"trapper":{"busy":{"avg":0.005130,"max":0.025533,"min":0.000000},"idle":{"avg":99.994870,"max":100.000000,"min":100.000000},"count":10},"proxy poller":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"escalator":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"history syncer":{"busy":{"avg":0.044830,"max":0.063702,"min":0.025481},"idle":{"avg":99.955170,"max":99.974519,"min":99.095426},"count":4},"discoverer":{"busy":{"avg":0.002141,"max":0.012700,"min":0.000000},"idle":{"avg":99.997859,"max":100.000000,"min":98.731095},"count":6},"alerter":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":3},"timer":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"housekeeper":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"configuration syncer":{"busy":{"avg":0.077892,"max":0.077892,"min":0.077892},"idle":{"avg":99.922108,"max":99.922108,"min":99.922108},"count":1},"self-monitoring":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"task manager":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"ipmi manager":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"alert manager":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"preprocessing manager":{"busy":{"avg":0.012920,"max":0.012920,"min":0.012920},"idle":{"avg":99.987080,"max":99.987080,"min":99.987080},"count":1},"preprocessing worker":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":3},"lld manager":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1},"lld worker":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":2},"alert syncer":{"busy":{"avg":0.063557,"max":0.063557,"min":0.063557},"idle":{"avg":99.936443,"max":99.936443,"min":99.936443},"count":1},"history poller":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":5},"availability manager":{"busy":{"avg":0.000000,"max":0.000000,"min":0.000000},"idle":{"avg":100.000000,"max":100.000000,"min":100.000000},"count":1}},"tcache":{"hits":0,"misses":0,"all":0,"phits":0.000000,"pmisses":0.000000,"items":0,"requests":0,"pitems":0.000000}}}]
modbus.get[tcp://127.0.0.1]                   [m|ZBX_NOTSUPPORTED]
kernel.maxfiles                               [u|6288495]
kernel.maxproc                                [u|99999]
vfs.fs.size[/,free]                           [u|10107754777088]
vfs.fs.inode[/,free]                          [u|19741708549]
vfs.fs.discovery                              [s|[{"{#FSNAME}":"/","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/dev","{#FSTYPE}":"devfs"},{"{#FSNAME}":"/var/mail","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/crash","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/zroot","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/src","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/tmp","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/audit","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/ports","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/log","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/data","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/comics","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/timemachine","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/books","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/series","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/db","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/movies","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/home","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/downloads","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/tmp","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/timemachine/speedy","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/var/db/postgres","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/music","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/timemachine/kirby","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/usr/timemachine/slappy","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm/daffy-k8s-template","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm/daffy-k8s0","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm/daffy-k8s1","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm/daffy-k8s2","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/vm/daffy-k8s3","{#FSTYPE}":"zfs"},{"{#FSNAME}":"/dev/fd","{#FSTYPE}":"fdescfs"},{"{#FSNAME}":"/proc","{#FSTYPE}":"procfs"}]]
vfs.fs.get                                    [s|[{"fsname":"/","fstype":"zfs","bytes":{"total":10129018096128,"free":10107754777088,"used":21263319040,"pfree":99.790075,"pused":0.209925},"inodes":{"total":19742643073,"free":19741708549,"used":934524,"pfree":99.995266,"pused":0.004734}},{"fsname":"/var/mail","fstype":"zfs","bytes":{"total":10107755021312,"free":10107754777088,"used":244224,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708578,"free":19741708549,"used":29,"pfree":100.000000,"pused":0.000000}},{"fsname":"/var/crash","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708557,"free":19741708549,"used":8,"pfree":100.000000,"pused":0.000000}},{"fsname":"/zroot","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/src","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/tmp","fstype":"zfs","bytes":{"total":10107756820992,"free":10107754777088,"used":2043904,"pfree":99.999980,"pused":0.000020},"inodes":{"total":19741708640,"free":19741708549,"used":91,"pfree":100.000000,"pused":0.000000}},{"fsname":"/var/audit","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708558,"free":19741708549,"used":9,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/ports","fstype":"zfs","bytes":{"total":10118362892800,"free":10107754777088,"used":10608115712,"pfree":99.895160,"pused":0.104840},"inodes":{"total":19742422909,"free":19741708549,"used":714360,"pfree":99.996382,"pused":0.003618}},{"fsname":"/var/log","fstype":"zfs","bytes":{"total":10115429352960,"free":10107754777088,"used":7674575872,"pfree":99.924130,"pused":0.075870},"inodes":{"total":19741708688,"free":19741708549,"used":139,"pfree":99.999999,"pused":0.000001}},{"fsname":"/usr/data","fstype":"zfs","bytes":{"total":10112023081472,"free":10107754777088,"used":4268304384,"pfree":99.957790,"pused":0.042210},"inodes":{"total":19741709632,"free":19741708549,"used":1083,"pfree":99.999995,"pused":0.000005}},{"fsname":"/usr/comics","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/timemachine","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708559,"free":19741708549,"used":10,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/books","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/series","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/var/db","fstype":"zfs","bytes":{"total":10110401618944,"free":10107754777088,"used":2646841856,"pfree":99.973821,"pused":0.026179},"inodes":{"total":19741762317,"free":19741708549,"used":53768,"pfree":99.999728,"pused":0.000272}},{"fsname":"/usr/movies","fstype":"zfs","bytes":{"total":10107754969088,"free":10107754777088,"used":192000,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708556,"free":19741708549,"used":7,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/home","fstype":"zfs","bytes":{"total":10343847823872,"free":10107754777088,"used":236093046784,"pfree":97.717551,"pused":2.282449},"inodes":{"total":19741792049,"free":19741708549,"used":83500,"pfree":99.999577,"pused":0.000423}},{"fsname":"/usr/downloads","fstype":"zfs","bytes":{"total":10107754986496,"free":10107754777088,"used":209408,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708560,"free":19741708549,"used":11,"pfree":100.000000,"pused":0.000000}},{"fsname":"/var/tmp","fstype":"zfs","bytes":{"total":10107754977792,"free":10107754777088,"used":200704,"pfree":99.999998,"pused":0.000002},"inodes":{"total":19741708558,"free":19741708549,"used":9,"pfree":100.000000,"pused":0.000000}},{"fsname":"/usr/timemachine/speedy","fstype":"zfs","bytes":{"total":4398046511104,"free":4210887879680,"used":187158631424,"pfree":95.744505,"pused":4.255495},"inodes":{"total":8224399861,"free":8224390390,"used":9471,"pfree":99.999885,"pused":0.000115}},{"fsname":"/var/db/postgres","fstype":"zfs","bytes":{"total":10115651369472,"free":10107754777088,"used":7896592384,"pfree":99.921937,"pused":0.078063},"inodes":{"total":19741711316,"free":19741708549,"used":2767,"pfree":99.999986,"pused":0.000014}},{"fsname":"/usr/music","fstype":"zfs","bytes":{"total":10216245431296,"free":10107754777088,"used":108490654208,"pfree":98.938057,"pused":1.061943},"inodes":{"total":19741774544,"free":19741708549,"used":65995,"pfree":99.999666,"pused":0.000334}},{"fsname":"/usr/timemachine/kirby","fstype":"zfs","bytes":{"total":536870912000,"free":258121671680,"used":278749240320,"pfree":48.078908,"pused":51.921092},"inodes":{"total":504266202,"free":504143890,"used":122312,"pfree":99.975745,"pused":0.024255}},{"fsname":"/usr/timemachine/slappy","fstype":"zfs","bytes":{"total":536870912000,"free":536870675968,"used":236032,"pfree":99.999956,"pused":0.000044},"inodes":{"total":1048575554,"free":1048575539,"used":15,"pfree":99.999999,"pused":0.000001}},{"fsname":"/vm","fstype":"zfs","bytes":{"total":10108100591616,"free":10107754777088,"used":345814528,"pfree":99.996579,"pused":0.003421},"inodes":{"total":19741708585,"free":19741708549,"used":36,"pfree":100.000000,"pused":0.000000}},{"fsname":"/vm/daffy-k8s-template","fstype":"zfs","bytes":{"total":10109023838208,"free":10107754777088,"used":1269061120,"pfree":99.987446,"pused":0.012554},"inodes":{"total":19741708560,"free":19741708549,"used":11,"pfree":100.000000,"pused":0.000000}},{"fsname":"/vm/daffy-k8s0","fstype":"zfs","bytes":{"total":10110750596096,"free":10107754777088,"used":2995819008,"pfree":99.970370,"pused":0.029630},"inodes":{"total":19741708562,"free":19741708549,"used":13,"pfree":100.000000,"pused":0.000000}},{"fsname":"/vm/daffy-k8s1","fstype":"zfs","bytes":{"total":10110061806080,"free":10107754777088,"used":2307028992,"pfree":99.977181,"pused":0.022819},"inodes":{"total":19741708562,"free":19741708549,"used":13,"pfree":100.000000,"pused":0.000000}},{"fsname":"/vm/daffy-k8s2","fstype":"zfs","bytes":{"total":10109996495872,"free":10107754777088,"used":2241718784,"pfree":99.977827,"pused":0.022173},"inodes":{"total":19741708562,"free":19741708549,"used":13,"pfree":100.000000,"pused":0.000000}},{"fsname":"/vm/daffy-k8s3","fstype":"zfs","bytes":{"total":10109892519936,"free":10107754777088,"used":2137742848,"pfree":99.978855,"pused":0.021145},"inodes":{"total":19741708562,"free":19741708549,"used":13,"pfree":100.000000,"pused":0.000000}},{"fsname":"/dev/fd","fstype":"fdescfs","bytes":{"total":1024,"free":0,"used":1024,"pfree":0.000000,"pused":100.000000},"inodes":{"total":5659642,"free":5659637,"used":5,"pfree":99.999912,"pused":0.000088}},{"fsname":"/proc","fstype":"procfs","bytes":{"total":4096,"free":0,"used":4096,"pfree":0.000000,"pused":100.000000},"inodes":{"total":1,"free":0,"used":1,"pfree":0.000000,"pused":100.000000}}]]
vfs.dev.read[da0,operations]                  [m|ZBX_NOTSUPPORTED] [Cannot obtain disk information.]
vfs.dev.write[da0,operations]                 [m|ZBX_NOTSUPPORTED] [Cannot obtain disk information.]
net.tcp.listen[80]                            [u|1]
net.udp.listen[68]                            [u|0]
net.if.in[lo0,bytes]                          [u|4546310430814]
net.if.out[lo0,bytes]                         [u|4546310157566]
net.if.total[lo0,bytes]                       [u|9092620588380]
net.if.collisions[lo0]                        [u|0]
net.if.discovery[lo0]                         [m|ZBX_NOTSUPPORTED] [Item does not allow parameters.]
vm.memory.size[free]                          [u|146899529728]
proc.num[inetd]                               [u|0]
proc.mem[inetd]                               [u|0]
system.cpu.switches                           [u|2168601212]
system.cpu.intr                               [u|2143774790]
system.cpu.util[all,user,avg1]                [m|ZBX_NOTSUPPORTED] [Collector is not started.]
system.cpu.load[all,avg1]                     [d|0.44287109375]
system.cpu.num[online]                        [u|32]
system.cpu.discovery                          [m|ZBX_NOTSUPPORTED] [Collector is not started.]
system.uname                                  [s|FreeBSD daffy 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 GENERIC amd64]
system.sw.arch                                [s|amd64]
system.swap.size[all,free]                    [u|17179869184]
system.uptime                                 [u|2943469]
system.boottime                               [u|1620657904]
net.tcp.service[ssh,127.0.0.1,22]             [u|1]
net.tcp.service.perf[ssh,127.0.0.1,22]        [d|0.008365631103515625]
net.udp.service[ntp,127.0.0.1,123]            [u|1]
net.udp.service.perf[ntp,127.0.0.1,123]       [d|0.0001]
system.hostname                               [s|daffy]
✔ daffy 12:22 #
nobody43 commented 3 years ago
✔ daffy 11:38 # ls -l /usr/local/etc/zabbix/zabbix_agentd.conf.d/
total 0

Well, that's it. Maybe user parameters got deleted during update. Or different dir been used previously.

packy commented 3 years ago

Thank you!

✔ daffy 12:33 # ls -ld /usr/local/etc/zabbix
lrwxr-xr-x  1 root  wheel  23 May 20 22:01 /usr/local/etc/zabbix -> /usr/local/etc/zabbix54
✔ daffy 12:33 # cp -v /usr/local/etc/zabbix50/zabbix_agentd.conf.d/* /usr/local/etc/zabbix54/zabbix_agentd.conf.d/
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/speedtest-ookla.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/speedtest-ookla.conf
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/template_db_postgresql.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/template_db_postgresql.conf
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/userparameter-HL-3170CDW.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/userparameter-HL-3170CDW.conf
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/userparameter-ipmitool.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/userparameter-ipmitool.conf
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/userparameter_mini-ipmi2.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/userparameter_mini-ipmi2.conf
/usr/local/etc/zabbix50/zabbix_agentd.conf.d/zfs.conf -> /usr/local/etc/zabbix54/zabbix_agentd.conf.d/zfs.conf
✔ daffy 12:34 # service zabbix_agentd restart
Stopping zabbix_agentd.
Waiting for PIDS: 58379 58381 58382 58384 58385 58386 58387.
Starting zabbix_agentd.
✔ daffy 12:35 # zabbix_get -s 192.168.1.11 -k mini.disktemp.discovery[get,"Example host"]
{
    "data": [
        {
            "{#DISK}": "pass0"
        },
        {
            "{#DISK}": "pass1"
        },
        {
            "{#DISK}": "pass2"
        },
        {
            "{#DISK}": "pass3"
        },
        {
            "{#DISK}": "pass4"
        },
        {
            "{#DISK}": "pass5"
        },
        {
            "{#DISK}": "pass6"
        },
        {
            "{#DISK}": "pass7"
        }
    ]
}
✔ daffy 12:36 # zabbix_get -s 192.168.1.11 -k mini.disktemp.discovery[getverb,"daffy"]
  Path guess: freebsd12

  Python version:
 3.7.9 (default, Feb  4 2021, 01:17:36)
[Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611a

  Sender version:
 zabbix_sender (Zabbix) 5.4.1rc1
Revision {ZABBIX_REVISION} 14 May 2021, compilation time: May 20 2021 21:32:24

Copyright (C) 2021 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 1.1.1h-freebsd  22 Sep 2020
Running with OpenSSL 1.1.1h-freebsd  22 Sep 2020

  Config's main settings:
Server=192.168.1.11,127.0.0.1
ServerActive=192.168.1.11,127.0.0.1
Timeout = 30

  Please report any issues or missing features to:
https://github.com/nobodysu/zabbix-mini-IPMI/issues

zabbix_sender [82284]: DEBUG: answer [{"response":"success","info":"processed: 2; failed: 40; total: 42; seconds spent: 0.000236"}]
Response from "192.168.1.11:10051": "processed: 2; failed: 40; total: 42; seconds spent: 0.000236"
zabbix_sender [82285]: DEBUG: answer [{"response":"success","info":"processed: 2; failed: 40; total: 42; seconds spent: 0.000220"}]
Response from "127.0.0.1:10051": "processed: 2; failed: 40; total: 42; seconds spent: 0.000220"
sent: 42; skipped: 0; total: 42

  Note: the sender will fail if server did not gather LLD previously.

  Data sent to zabbix sender:

"daffy" mini.disk.info[pass0,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass0] "34"
"daffy" mini.disk.tempMin[pass0] "25"
"daffy" mini.disk.tempMax[pass0] "45"
"daffy" mini.disk.tempCrit[pass0] "60"
"daffy" mini.disk.info[pass1,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass1] "35"
"daffy" mini.disk.tempMin[pass1] "25"
"daffy" mini.disk.tempMax[pass1] "45"
"daffy" mini.disk.tempCrit[pass1] "60"
"daffy" mini.disk.info[pass2,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass2] "36"
"daffy" mini.disk.tempMin[pass2] "25"
"daffy" mini.disk.tempMax[pass2] "45"
"daffy" mini.disk.tempCrit[pass2] "60"
"daffy" mini.disk.info[pass3,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass3] "35"
"daffy" mini.disk.tempMin[pass3] "25"
"daffy" mini.disk.tempMax[pass3] "45"
"daffy" mini.disk.tempCrit[pass3] "60"
"daffy" mini.disk.info[pass4,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass4] "33"
"daffy" mini.disk.tempMin[pass4] "25"
"daffy" mini.disk.tempMax[pass4] "45"
"daffy" mini.disk.tempCrit[pass4] "60"
"daffy" mini.disk.info[pass5,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass5] "33"
"daffy" mini.disk.tempMin[pass5] "25"
"daffy" mini.disk.tempMax[pass5] "45"
"daffy" mini.disk.tempCrit[pass5] "60"
"daffy" mini.disk.info[pass6,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass6] "32"
"daffy" mini.disk.tempMin[pass6] "25"
"daffy" mini.disk.tempMax[pass6] "45"
"daffy" mini.disk.tempCrit[pass6] "60"
"daffy" mini.disk.info[pass7,DriveStatus] "PROCESSED"
"daffy" mini.disk.temp[pass7] "33"
"daffy" mini.disk.tempMin[pass7] "25"
"daffy" mini.disk.tempMax[pass7] "45"
"daffy" mini.disk.tempCrit[pass7] "60"
"daffy" mini.disk.info[ConfigStatus] "CONFIGURED"
"daffy" mini.disk.temp[MAX] "36"