I have a trapper item created. I am trying to use Zabbix sender to send a value to the trapper item. I get an error message as below and am not sure what it means:
$ zabbix_sender -vv -z myzabbix.com -p 3333 -s "My alerts" -k my_namespace.container_cpu_usage -o 84.0
zabbix_sender [1700]: DEBUG: In connect_to_server() [myzabbix.com]:3333 [timeout:60, connection timeout:3]
zabbix_sender [1700]: DEBUG: In is_ip4() ip:'myzabbix.com'
zabbix_sender [1700]: DEBUG: End of is_ip4():FAIL
zabbix_sender [1700]: DEBUG: In is_ip6() ip:'myzabbix.com'
zabbix_sender [1700]: DEBUG: End of is_ip6():FAIL
zabbix_sender [1700]: Warning: Message from myzabbix.com is missing header. Message ignored.
zabbix_sender [1700]: DEBUG: Unable to receive from [myzabbix.com]:3333 []
Sending failed.
I am able to load http://myzabbix.com:3333 through the browser and ping it. I can see that the trapper item my_namespace.container_cpu_usage is created with value of numeric float.
I also tried adding the current host name to the 'Allowed host' in the trapper configuration.
Please let me know if there is something I am missing. Thanks!
$ zabbix_sender -vv -z myzabbix.com -p 3333 -s "My alerts" -k my_namespace.container_cpu_usage -o 84.0
zabbix_sender [1700]: DEBUG: In connect_to_server() [myzabbix.com]:3333 [timeout:60, connection timeout:3]
zabbix_sender [1700]: DEBUG: In is_ip4() ip:'myzabbix.com'
zabbix_sender [1700]: DEBUG: End of is_ip4():FAIL
zabbix_sender [1700]: DEBUG: In is_ip6() ip:'myzabbix.com'
zabbix_sender [1700]: DEBUG: End of is_ip6():FAIL
zabbix_sender [1700]: Warning: Message from myzabbix.com is missing header. Message ignored.
zabbix_sender [1700]: DEBUG: Unable to receive from [myzabbix.com]:3333 []
Sending failed.
I am able to load http://myzabbix.com:3333 through the browser and ping it. I can see that the trapper item my_namespace.container_cpu_usage is created with value of numeric float.
I also tried adding the current host name to the 'Allowed host' in the trapper configuration.
Please let me know if there is something I am missing. Thanks!
Comment