Created
November 13, 2021 00:16
-
-
Save false-git/e64cddc6818613616fa707818f986bd0 to your computer and use it in GitHub Desktop.
FreeBSD の zabbix54-agent で net.if.discovery に失敗する問題に対応するパッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- src/libs/zbxsysinfo/freebsd/freebsd.c.orig 2021-11-13 09:05:42.172000000 +0900 | |
+++ src/libs/zbxsysinfo/freebsd/freebsd.c 2021-11-13 09:05:57.725120000 +0900 | |
@@ -41,7 +41,7 @@ | |
{"net.if.out", CF_HAVEPARAMS, NET_IF_OUT, "lo0,bytes"}, | |
{"net.if.total", CF_HAVEPARAMS, NET_IF_TOTAL, "lo0,bytes"}, | |
{"net.if.collisions", CF_HAVEPARAMS, NET_IF_COLLISIONS, "lo0"}, | |
- {"net.if.discovery", 0, NET_IF_DISCOVERY, "lo0"}, | |
+ {"net.if.discovery", 0, NET_IF_DISCOVERY, NULL}, | |
{"vm.memory.size", CF_HAVEPARAMS, VM_MEMORY_SIZE, "free"}, |
と思ったけど、zabbix_agentd -p の結果が変わるだけで、サーバには全部収集されてる?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
上記のファイルを、
/usr/ports/net-mgmt/zabbix54-server/files に置いて、/usr/ports/net-mgmt/zabbix54-agent をインストールするとなおります。