Zabbix Agent 6.4.13 (revision 6e531c40ff3), running on OPNsense 24.1_1
There is a Zabbix Proxy on the same network.
Zabbix agent answers to request very slowly:
time zabbix_get -s 10.101.0.1 -k system.uname
FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64
0.000u 0.008s 0:20.23 0.0% 0+0k 0+0io 0pf+0w
That's 20 seconds for a simple request.
In comparison:
time zabbix_agentd -t system.uname
system.uname [s|FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64]
0.011u 0.000s 0:00.01 100.0% 340+144k 0+0io 0pf+0w
That's only milliseconds.
What's interesting: From the Zabbix proxy its way faster than locally on the machine, where the agent runs:
time zabbix_get -s 10.101.0.1 -k system.uname
FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64
real 0m10.091s
user 0m0.002s
sys 0m0.005s
That's 10 s from the proxy, but 20 s locally?!
From the agent's logs (reverse order!), filtered by process ID:
I expect the time between "zbx_setproctitle() title:'listener #3 [processing request]'" and "Requested [system.uname]" to be near 0 s.
There is a Zabbix Proxy on the same network.
Zabbix agent answers to request very slowly:
time zabbix_get -s 10.101.0.1 -k system.uname
FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64
0.000u 0.008s 0:20.23 0.0% 0+0k 0+0io 0pf+0w
That's 20 seconds for a simple request.
In comparison:
time zabbix_agentd -t system.uname
system.uname [s|FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64]
0.011u 0.000s 0:00.01 100.0% 340+144k 0+0io 0pf+0w
That's only milliseconds.
What's interesting: From the Zabbix proxy its way faster than locally on the machine, where the agent runs:
time zabbix_get -s 10.101.0.1 -k system.uname
FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64
real 0m10.091s
user 0m0.002s
sys 0m0.005s
That's 10 s from the proxy, but 20 s locally?!
From the agent's logs (reverse order!), filtered by process ID:
| 2024-04-23T13:29:45 | 77391 | zbx_setproctitle() title:'listener #3 [waiting for connection]' |
| 2024-04-23T13:29:45 | 77391 | Sending back [FreeBSD server-029.assono.local 13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 stable/24.1-n254969-8659880248c SMP amd64] | ||
| 2024-04-23T13:29:45 | 77391 | Requested [system.uname] | ||
| 2024-04-23T13:29:25 | 77391 | zbx_setproctitle() title:'listener #3 [processing request]' |
I expect the time between "zbx_setproctitle() title:'listener #3 [processing request]'" and "Requested [system.uname]" to be near 0 s.