I'm using UserParameters to collect data from an app every hour.
Something like this:
When I try to collect that data using the item test option, Zabbix gives me an error for "app.parm3" key.
"app parm3" command might take about 5s to respond; therefore, I raised the Agent2 timeout parameter.
Now I can query my host using "zabbix_get" from Server and it works fine.
But, when testing from Zabbix frontend it keeps giving me that previous error.
Also, the host displays the item as "not supported" with the following error.
I also tried raising Agent2 timeout to 30, but did not change anything.
Zabbix Server log displays some network errors as well, but there's no real network error.
The host Agent2's displays nothing at log file.
I can't seem to find the issue.
Any idea?
Btw, I'm using Zabbix 5.4.9.
Something like this:
Code:
$ cat /etc/zabbix/zabbix_agent2.d/zabbix_agent2.app.conf Timeout=10 UserParameter=app.parm1,/usr/bin/app parm1 info UserParameter=app.parm2,/usr/bin/app parm2 info UserParameter=app.parm3,/usr/bin/app parm3
When I try to collect that data using the item test option, Zabbix gives me an error for "app.parm3" key.
Get value from agent failed: ZBX_TCP_READ() timed out
"app parm3" command might take about 5s to respond; therefore, I raised the Agent2 timeout parameter.
Now I can query my host using "zabbix_get" from Server and it works fine.
Code:
$ zabbix_get -s 192.168.7.11 -k app.parm3 [CURRENT] 22 [CORRECT DATA]
But, when testing from Zabbix frontend it keeps giving me that previous error.
Also, the host displays the item as "not supported" with the following error.
Timeout while executing a shell script.
I also tried raising Agent2 timeout to 30, but did not change anything.
Zabbix Server log displays some network errors as well, but there's no real network error.
Code:
1117:20220131:131553.634 Zabbix agent item "app.parm3" on host "192.168.7.11" failed: first network error, wait for 15 seconds 1117:20220131:131608.641 resuming Zabbix agent checks on host "192.168.7.11": connection restored 1117:20220131:131612.642 Zabbix agent item "app.parm3" on host "192.168.7.11" failed: first network error, wait for 15 seconds 1117:20220131:131627.647 resuming Zabbix agent checks on host "192.168.7.11": connection restored
I can't seem to find the issue.
Any idea?
Btw, I'm using Zabbix 5.4.9.
Comment