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

categraf v0.3.66 自定义配置文件hostname字段值,启动categraf后主机内存跑满,降级到在用的v0.3.43正常 #938

Closed
Somalia0932 opened this issue May 19, 2024 · 8 comments

Comments

@Somalia0932
Copy link

Relevant config.toml

[global]
# whether print configs
print_configs = false

# add label(agent_hostname) to series
# "" -> auto detect hostname
# "xx" -> use specified string xx
# "$hostname" -> auto detect hostname
# "$ip" -> auto detect ip
# "$hostname-$ip" -> auto detect hostname and ip to replace the vars
hostname = "10.0.0.131"

Logs from categraf

/home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0aac2b7a8 sp=0xc0aac2b750 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0aac2b7c8 sp=0xc0aac2b7a8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0aac2b820 sp=0xc0aac2b7c8 pc=0xb62385
...1960858 frames elided...
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f058 sp=0xc0b1c5f038 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f0b0 sp=0xc0b1c5f058 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f0d0 sp=0xc0b1c5f0b0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f128 sp=0xc0b1c5f0d0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f148 sp=0xc0b1c5f128 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f1a0 sp=0xc0b1c5f148 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f1c0 sp=0xc0b1c5f1a0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f218 sp=0xc0b1c5f1c0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f238 sp=0xc0b1c5f218 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f290 sp=0xc0b1c5f238 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f2b0 sp=0xc0b1c5f290 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f308 sp=0xc0b1c5f2b0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f328 sp=0xc0b1c5f308 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f380 sp=0xc0b1c5f328 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f3a0 sp=0xc0b1c5f380 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f3f8 sp=0xc0b1c5f3a0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f418 sp=0xc0b1c5f3f8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f470 sp=0xc0b1c5f418 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f490 sp=0xc0b1c5f470 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f4e8 sp=0xc0b1c5f490 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f508 sp=0xc0b1c5f4e8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f560 sp=0xc0b1c5f508 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f580 sp=0xc0b1c5f560 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f5d8 sp=0xc0b1c5f580 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f5f8 sp=0xc0b1c5f5d8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f650 sp=0xc0b1c5f5f8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f670 sp=0xc0b1c5f650 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f6c8 sp=0xc0b1c5f670 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f6e8 sp=0xc0b1c5f6c8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f740 sp=0xc0b1c5f6e8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f760 sp=0xc0b1c5f740 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f7b8 sp=0xc0b1c5f760 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f7d8 sp=0xc0b1c5f7b8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f830 sp=0xc0b1c5f7d8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f850 sp=0xc0b1c5f830 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f8a8 sp=0xc0b1c5f850 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f8c8 sp=0xc0b1c5f8a8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f920 sp=0xc0b1c5f8c8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f940 sp=0xc0b1c5f920 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5f998 sp=0xc0b1c5f940 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5f9b8 sp=0xc0b1c5f998 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5fa10 sp=0xc0b1c5f9b8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0b1c5fa30 sp=0xc0b1c5fa10 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0b1c5fa88 sp=0xc0b1c5fa30 pc=0xb62385
flashcat.cloud/categraf/config.(*InternalConfig).Process(0xc001ab28f0, 0xc001291880)
        /home/runner/work/categraf/categraf/config/inline.go:204 +0x49e fp=0xc0b1c5fd88 sp=0xc0b1c5fa88 pc=0xb64d7e
flashcat.cloud/categraf/inputs/self_metrics.(*Categraf).Process(0x0?, 0x47bf2e0?)
        <autogenerated>:1 +0x1e fp=0xc0b1c5fda8 sp=0xc0b1c5fd88 pc=0x1bca3be
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc0012f2900)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:82 +0x14e fp=0xc0b1c5fe68 sp=0xc0b1c5fda8 pc=0x38f4a0e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc0012f2900)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:57 +0x285 fp=0xc0b1c5ffc8 sp=0xc0b1c5fe68 pc=0x38f45e5
flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo.func8()
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x25 fp=0xc0b1c5ffe0 sp=0xc0b1c5ffc8 pc=0x38f3b85
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0b1c5ffe8 sp=0xc0b1c5ffe0 pc=0x4721c1
created by flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo in goroutine 1
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x55f

goroutine 122 [runnable]:
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000aa1800?)
        /home/runner/work/categraf/categraf/config/config.go:209 +0x4b fp=0xc011857468 sp=0xc011857460 pc=0xb6248b
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0118574c0 sp=0xc011857468 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0118574e0 sp=0xc0118574c0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857538 sp=0xc0118574e0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857558 sp=0xc011857538 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0118575b0 sp=0xc011857558 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0118575d0 sp=0xc0118575b0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857628 sp=0xc0118575d0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857648 sp=0xc011857628 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0118576a0 sp=0xc011857648 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0118576c0 sp=0xc0118576a0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857718 sp=0xc0118576c0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857738 sp=0xc011857718 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857790 sp=0xc011857738 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0118577b0 sp=0xc011857790 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857808 sp=0xc0118577b0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857828 sp=0xc011857808 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857880 sp=0xc011857828 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0118578a0 sp=0xc011857880 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0118578f8 sp=0xc0118578a0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857918 sp=0xc0118578f8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857970 sp=0xc011857918 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857990 sp=0xc011857970 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0118579e8 sp=0xc011857990 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857a08 sp=0xc0118579e8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857a60 sp=0xc011857a08 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857a80 sp=0xc011857a60 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857ad8 sp=0xc011857a80 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857af8 sp=0xc011857ad8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857b50 sp=0xc011857af8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857b70 sp=0xc011857b50 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857bc8 sp=0xc011857b70 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857be8 sp=0xc011857bc8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857c40 sp=0xc011857be8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857c60 sp=0xc011857c40 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857cb8 sp=0xc011857c60 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857cd8 sp=0xc011857cb8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857d30 sp=0xc011857cd8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857d50 sp=0xc011857d30 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857da8 sp=0xc011857d50 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857dc8 sp=0xc011857da8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857e20 sp=0xc011857dc8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857e40 sp=0xc011857e20 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857e98 sp=0xc011857e40 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857eb8 sp=0xc011857e98 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857f10 sp=0xc011857eb8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857f30 sp=0xc011857f10 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011857f88 sp=0xc011857f30 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc011857fa8 sp=0xc011857f88 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc011858000 sp=0xc011857fa8 pc=0xb62385
...996626 frames elided...
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f058 sp=0xc01515f038 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f0b0 sp=0xc01515f058 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f0d0 sp=0xc01515f0b0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f128 sp=0xc01515f0d0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f148 sp=0xc01515f128 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f1a0 sp=0xc01515f148 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f1c0 sp=0xc01515f1a0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f218 sp=0xc01515f1c0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f238 sp=0xc01515f218 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f290 sp=0xc01515f238 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f2b0 sp=0xc01515f290 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f308 sp=0xc01515f2b0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f328 sp=0xc01515f308 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f380 sp=0xc01515f328 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f3a0 sp=0xc01515f380 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f3f8 sp=0xc01515f3a0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f418 sp=0xc01515f3f8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f470 sp=0xc01515f418 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f490 sp=0xc01515f470 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f4e8 sp=0xc01515f490 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f508 sp=0xc01515f4e8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f560 sp=0xc01515f508 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f580 sp=0xc01515f560 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f5d8 sp=0xc01515f580 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f5f8 sp=0xc01515f5d8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f650 sp=0xc01515f5f8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f670 sp=0xc01515f650 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f6c8 sp=0xc01515f670 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f6e8 sp=0xc01515f6c8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f740 sp=0xc01515f6e8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f760 sp=0xc01515f740 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f7b8 sp=0xc01515f760 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f7d8 sp=0xc01515f7b8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f830 sp=0xc01515f7d8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f850 sp=0xc01515f830 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f8a8 sp=0xc01515f850 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f8c8 sp=0xc01515f8a8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f920 sp=0xc01515f8c8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f940 sp=0xc01515f920 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515f998 sp=0xc01515f940 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515f9b8 sp=0xc01515f998 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515fa10 sp=0xc01515f9b8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc01515fa30 sp=0xc01515fa10 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc01515fa88 sp=0xc01515fa30 pc=0xb62385
flashcat.cloud/categraf/config.(*InternalConfig).Process(0xc001ada000, 0xc001291f40)
        /home/runner/work/categraf/categraf/config/inline.go:204 +0x49e fp=0xc01515fd88 sp=0xc01515fa88 pc=0xb64d7e
flashcat.cloud/categraf/inputs/sockstat.(*SockStat).Process(0xc001ada000?, 0x484ee40?)
        <autogenerated>:1 +0x1e fp=0xc01515fda8 sp=0xc01515fd88 pc=0x1c525be
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc0012f2cc0)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:82 +0x14e fp=0xc01515fe68 sp=0xc01515fda8 pc=0x38f4a0e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc0012f2cc0)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:57 +0x285 fp=0xc01515ffc8 sp=0xc01515fe68 pc=0x38f45e5
flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo.func8()
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x25 fp=0xc01515ffe0 sp=0xc01515ffc8 pc=0x38f3b85
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc01515ffe8 sp=0xc01515ffe0 pc=0x4721c1
created by flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo in goroutine 1
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x55f

goroutine 80 [chan receive]:
runtime.gopark(0xc000493f00?, 0x77f765?, 0x0?, 0xa8?, 0xc000493f78?)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/proc.go:398 +0xce fp=0xc000493ee8 sp=0xc000493ec8 pc=0x43e94e
runtime.chanrecv(0xc0021a0060, 0xc000493fb0, 0x1)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/chan.go:583 +0x3cd fp=0xc000493f60 sp=0xc000493ee8 pc=0x409bcd
runtime.chanrecv1(0xc0021a0060?, 0xc000493fc0?)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/chan.go:442 +0x12 fp=0xc000493f88 sp=0xc000493f60 pc=0x4097d2
main.profile()
        /home/runner/work/categraf/categraf/main_posix.go:33 +0x6f fp=0xc000493fe0 sp=0xc000493f88 pc=0x39b9cef
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000493fe8 sp=0xc000493fe0 pc=0x4721c1
created by main.runAgent in goroutine 1
        /home/runner/work/categraf/categraf/main_posix.go:18 +0x46

goroutine 145 [select, locked to thread]:
runtime.gopark(0xc0012d4fa8?, 0x2?, 0x3c?, 0xea?, 0xc0012d4fa4?)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/proc.go:398 +0xce fp=0xc0012d4e38 sp=0xc0012d4e18 pc=0x43e94e
runtime.selectgo(0xc0012d4fa8, 0xc0012d4fa0, 0x0?, 0x0, 0xc000aa1800?, 0x1)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/select.go:327 +0x725 fp=0xc0012d4f58 sp=0xc0012d4e38 pc=0x44edc5
runtime.ensureSigM.func1()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/signal_unix.go:1014 +0x19f fp=0xc0012d4fe0 sp=0xc0012d4f58 pc=0x4687df
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc0012d4fe8 sp=0xc0012d4fe0 pc=0x4721c1
created by runtime.ensureSigM in goroutine 1
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/signal_unix.go:997 +0xc8

goroutine 123 [runnable]:
flashcat.cloud/categraf/config.(*HostInfoCache).GetSN.func1()
        /home/runner/work/categraf/categraf/config/hostname.go:36 +0x30 fp=0xc0274bd968 sp=0xc0274bd960 pc=0xb636f0
flashcat.cloud/categraf/config.(*HostInfoCache).GetSN(0xb636e5?)
        /home/runner/work/categraf/categraf/config/hostname.go:38 +0x99 fp=0xc0274bd9c0 sp=0xc0274bd968 pc=0xb63679
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:210 +0x25 fp=0xc0274bd9e0 sp=0xc0274bd9c0 pc=0xb62465
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bda38 sp=0xc0274bd9e0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bda58 sp=0xc0274bda38 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdab0 sp=0xc0274bda58 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdad0 sp=0xc0274bdab0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdb28 sp=0xc0274bdad0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdb48 sp=0xc0274bdb28 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdba0 sp=0xc0274bdb48 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdbc0 sp=0xc0274bdba0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdc18 sp=0xc0274bdbc0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdc38 sp=0xc0274bdc18 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdc90 sp=0xc0274bdc38 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdcb0 sp=0xc0274bdc90 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdd08 sp=0xc0274bdcb0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdd28 sp=0xc0274bdd08 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdd80 sp=0xc0274bdd28 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdda0 sp=0xc0274bdd80 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bddf8 sp=0xc0274bdda0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bde18 sp=0xc0274bddf8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bde70 sp=0xc0274bde18 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bde90 sp=0xc0274bde70 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdee8 sp=0xc0274bde90 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdf08 sp=0xc0274bdee8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdf60 sp=0xc0274bdf08 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdf80 sp=0xc0274bdf60 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274bdfd8 sp=0xc0274bdf80 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274bdff8 sp=0xc0274bdfd8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be050 sp=0xc0274bdff8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be070 sp=0xc0274be050 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be0c8 sp=0xc0274be070 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be0e8 sp=0xc0274be0c8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be140 sp=0xc0274be0e8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be160 sp=0xc0274be140 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be1b8 sp=0xc0274be160 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be1d8 sp=0xc0274be1b8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be230 sp=0xc0274be1d8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be250 sp=0xc0274be230 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be2a8 sp=0xc0274be250 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be2c8 sp=0xc0274be2a8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be320 sp=0xc0274be2c8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be340 sp=0xc0274be320 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be398 sp=0xc0274be340 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be3b8 sp=0xc0274be398 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be410 sp=0xc0274be3b8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be430 sp=0xc0274be410 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be488 sp=0xc0274be430 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc0274be4a8 sp=0xc0274be488 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc0274be500 sp=0xc0274be4a8 pc=0xb62385
...500306 frames elided...
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f058 sp=0xc02915f038 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f0b0 sp=0xc02915f058 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f0d0 sp=0xc02915f0b0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f128 sp=0xc02915f0d0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f148 sp=0xc02915f128 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f1a0 sp=0xc02915f148 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f1c0 sp=0xc02915f1a0 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f218 sp=0xc02915f1c0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f238 sp=0xc02915f218 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f290 sp=0xc02915f238 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f2b0 sp=0xc02915f290 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f308 sp=0xc02915f2b0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f328 sp=0xc02915f308 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f380 sp=0xc02915f328 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f3a0 sp=0xc02915f380 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f3f8 sp=0xc02915f3a0 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f418 sp=0xc02915f3f8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f470 sp=0xc02915f418 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f490 sp=0xc02915f470 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f4e8 sp=0xc02915f490 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f508 sp=0xc02915f4e8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f560 sp=0xc02915f508 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f580 sp=0xc02915f560 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f5d8 sp=0xc02915f580 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f5f8 sp=0xc02915f5d8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f650 sp=0xc02915f5f8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f670 sp=0xc02915f650 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f6c8 sp=0xc02915f670 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f6e8 sp=0xc02915f6c8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f740 sp=0xc02915f6e8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f760 sp=0xc02915f740 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f7b8 sp=0xc02915f760 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f7d8 sp=0xc02915f7b8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f830 sp=0xc02915f7d8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f850 sp=0xc02915f830 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f8a8 sp=0xc02915f850 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f8c8 sp=0xc02915f8a8 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f920 sp=0xc02915f8c8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f940 sp=0xc02915f920 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915f998 sp=0xc02915f940 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915f9b8 sp=0xc02915f998 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915fa10 sp=0xc02915f9b8 pc=0xb62385
flashcat.cloud/categraf/config.(*ConfigType).GetHostSN(0xc000155320?)
        /home/runner/work/categraf/categraf/config/config.go:212 +0x34 fp=0xc02915fa30 sp=0xc02915fa10 pc=0xb62474
flashcat.cloud/categraf/config.(*ConfigType).GetHostname(0xc000aa1800)
        /home/runner/work/categraf/categraf/config/config.go:196 +0xc5 fp=0xc02915fa88 sp=0xc02915fa30 pc=0xb62385
flashcat.cloud/categraf/config.(*InternalConfig).Process(0xc002212340, 0xc001af9e00)
        /home/runner/work/categraf/categraf/config/inline.go:204 +0x49e fp=0xc02915fd88 sp=0xc02915fa88 pc=0xb64d7e
flashcat.cloud/categraf/inputs/system.(*SystemStats).Process(0xc002212340?, 0x47bfac0?)
        <autogenerated>:1 +0x1e fp=0xc02915fda8 sp=0xc02915fd88 pc=0x114707e
flashcat.cloud/categraf/agent.(*InputReader).gatherOnce(0xc0012f3500)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:82 +0x14e fp=0xc02915fe68 sp=0xc02915fda8 pc=0x38f4a0e
flashcat.cloud/categraf/agent.(*InputReader).startInput(0xc0012f3500)
        /home/runner/work/categraf/categraf/agent/metrics_reader.go:57 +0x285 fp=0xc02915ffc8 sp=0xc02915fe68 pc=0x38f45e5
flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo.func8()
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x25 fp=0xc02915ffe0 sp=0xc02915ffc8 pc=0x38f3b85
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc02915ffe8 sp=0xc02915ffe0 pc=0x4721c1
created by flashcat.cloud/categraf/agent.(*MetricsAgent).inputGo in goroutine 1
        /home/runner/work/categraf/categraf/agent/metrics_agent.go:313 +0x55f

goroutine 146 [syscall]:
runtime.notetsleepg(0x44599c?, 0x0?)
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/lock_futex.go:236 +0x29 fp=0xc000491fa0 sp=0xc000491f68 pc=0x40f249
os/signal.signal_recv()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/sigqueue.go:152 +0x29 fp=0xc000491fc0 sp=0xc000491fa0 pc=0x46e6e9
os/signal.loop()
        /opt/hostedtoolcache/go/1.21.10/x64/src/os/signal/signal_unix.go:23 +0x13 fp=0xc000491fe0 sp=0xc000491fc0 pc=0x7804b3
runtime.goexit()
        /opt/hostedtoolcache/go/1.21.10/x64/src/runtime/asm_amd64.s:1650 +0x1 fp=0xc000491fe8 sp=0xc000491fe0 pc=0x4721c1
created by os/signal.Notify.func1.1 in goroutine 1
        /opt/hostedtoolcache/go/1.21.10/x64/src/os/signal/signal.go:151 +0x1f

System info

categraf v0.3.66 / CentOS Linux release 7.9.2009 (Core)

Docker

No response

Steps to reproduce

  1. 修改categraf 配置文件hostname字段值,启动categraf 主机内存暴涨,导致主机卡死。
    未启动categraf时内存
    [root@dev-master-1 categraf]# free -h
    total used free shared buff/cache available
    Mem: 7.5G 1.4G 5.0G 13M 1.1G 5.9G
    Swap: 0B 0B 0B
    启动categraf后
    total used free shared buff/cache available
    Mem: 7.5G 6.1G 334M 13M 1.1G 1.2G
    Swap: 0B 0B 0B

...

Expected behavior

其它v0.3.43机器正常categraf在100多M。

Actual behavior

内存暴涨,主机卡死,N9E上无法显示该target

Additional info

No response

@wudihechao
Copy link
Contributor

用普通用户启动的吗?

@Somalia0932
Copy link
Author

用普通用户启动的吗?

使用root用户

@wudihechao
Copy link
Contributor

用普通用户启动的吗?

使用root用户

哦哦,是的,我测了下,普通用户启动会报错 F! failed to init config: failed to get bios sn: exit status 1
那说明 应该是能拿到 sn 呢,可以试试 在机器执行 cat /sys/class/dmi/id/product_serial有结果吗?

@Somalia0932
Copy link
Author

用普通用户启动的吗?

使用root用户

哦哦,是的,我测了下,普通用户启动会报错 F! failed to init config: failed to get bios sn: exit status 1 那说明 应该是能拿到 sn 呢,可以试试 在机器执行 cat /sys/class/dmi/id/product_serial有结果吗?

空的,我的是虚拟机内。
[root@dev-master-1 ~]# cat /sys/class/dmi/id/product_serial

[root@dev-master-1 ~]#

@wudihechao
Copy link
Contributor

用普通用户启动的吗?

使用root用户

哦哦,是的,我测了下,普通用户启动会报错 F! failed to init config: failed to get bios sn: exit status 1 那说明 应该是能拿到 sn 呢,可以试试 在机器执行 cat /sys/class/dmi/id/product_serial有结果吗?

空的,我的是虚拟机内。 [root@dev-master-1 ~]# cat /sys/class/dmi/id/product_serial

[root@dev-master-1 ~]#

哦哦,那难怪了。我也在虚拟机测得,还是能拿到bios,当时没想到 会有空的,我改下这段逻辑吧。

@wudihechao
Copy link
Contributor

wudihechao commented May 20, 2024

fix pr

@kongfei605
Copy link
Collaborator

@Somalia0932
Copy link
Author

@wudihechao @kongfei605
刚刚装上了,已经解决,非常ok,辛苦了

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