[ZBX-17677] zabbix_sender does not work if run on zabbix server host? Created: 2020 May 05 Updated: 2020 Jun 30 |
|
Status: | Open |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Jeroen Baten | Assignee: | Eduards Matuls (Inactive) |
Resolution: | Unresolved | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
zabbix 4.4.7 on 3 hosts, one is server |
Attachments: |
![]() ![]() ![]() |
Description |
Running on host that is NOT the zabbix server: zabbix_sender -vv -c /etc/zabbix/zabbix_agentd.conf --key rclone.log --value "2020/05/05 09:44:14 test 123"
Running on host that IS the zabbix server: zabbix_sender -vv -c /etc/zabbix/zabbix_agentd.conf --key rclone.log --value "2020/05/05 09:44:14 test 123"
|
Comments |
Comment by Glebs Ivanovskis [ 2020 May 06 ] |
Check Allowed hosts setting for this trapper item. |
Comment by Jeroen Baten [ 2020 May 06 ] |
The item is from a template and no Allowed host setting is in effect |
Comment by Glebs Ivanovskis [ 2020 May 06 ] |
Are /etc/zabbix/zabbix_agentd.conf files identical on these hosts? Is there anything useful in server's log file? |
Comment by Jeroen Baten [ 2020 May 06 ] |
Loglevel 4 12195:20200505:094940.318 zbx_setproctitle() title:'trapper #1 [processing data]' ]}' Loglevel 5 12522:20200505:095150.373 trapper got '{"request":"sender data","data":[ {"host":"s102","key":"rclone.log","value":"test 123"}]}' |
Comment by Jeroen Baten [ 2020 May 06 ] |
While on the subject: just a little more diagnostic messages for zabbx-sender would be really nice... |
Comment by Ingus Vilnis [ 2020 May 06 ] |
Try using external IP instead of 127.0.0.1 for ServerActive in zabbix_agentd.conf and see if that makes any difference. |
Comment by Jeroen Baten [ 2020 May 06 ] |
vim /etc/zabbix/zabbix_agentd.conf # grep ServerActive /etc/zabbix/zabbix_agentd.conf ### Option: ServerActive ServerActive=x.y.z.a (removed for security reasons) # service zabbix-agent restart # zabbix_sender -c /etc/zabbix/zabbix_agentd.conf --key rclone.log --value "test123" Response from "x.y.z.a:10051": "processed: 0; failed: 1; total: 1; seconds spent: 0.000025" sent: 1; skipped: 0; total: 1 root@s102:~# Result: makes no difference
|
Comment by Alexander Vladishev [ 2020 May 28 ] |
Not related to the problem, but "Log time format" is incorrect in the item configuration. The month should be capitalized: yyyy/MM/dd hh:mm:ss. |
Comment by Eduards Matuls (Inactive) [ 2020 Jun 19 ] |
Hello! After reviewing the issue I have additional questions:
Regards, |
Comment by Jeroen Baten [ 2020 Jun 19 ] |
I just checked and can confirm it still behaves the same. Q1: good host:# grep Hostname /etc/zabbix/zabbix_agentd.conf | grep -v "^#" bad host/server# grep Hostname /etc/zabbix/zabbix_agentd.conf | grep -v "^#" Q2: Both hosts have the same template assigned with the same rclone.log key.
Screenshot of latest data afther having just run the same command |