Ad Widget

Collapse

Help with zabbix sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adz
    Junior Member
    • Feb 2023
    • 3

    #1

    Help with zabbix sender

    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!​
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    The destination of the zabbix_sender command is the Zabbix server daemon, not the web server process. Zabbix server daemon is not accessible by web browser. By default, port number 10051 is used.

    Comment

    • Adz
      Junior Member
      • Feb 2023
      • 3

      #3
      Thanks, that worked for me. The service is deployed on Kubernetes. After exposing the Zabbix server port and using that, was able to send the value.

      Comment

      Working...