Ad Widget

Collapse

zabbix_sender, hostname with blanks in it's name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tuo
    Junior Member
    • Feb 2010
    • 18

    #1

    zabbix_sender, hostname with blanks in it's name

    Hi Zabbix community,

    a very simple question How can I send data via zabbix_sender for a host which has blanks in it's hostname? We are creating hosts via the API and currently allow hosts with blanks, then send data to them via the zabbix_sender.

    I have tried the following:

    ./zabbix_sender -z zabbixmonitor.de -s 'Host Name' -k myval -o 19 -vv

    and

    ./zabbix_sender -z zabbixmonitor.de -s "Host Name" -k myval -o 19 -vv

    without success. As soon as I replace the blank with for example an underscore on the server and send like the following, it works:

    ./zabbix_sender -z zabbixmonitor.de -s 'Host_Name' -k myval -o 19 -vv

    what to do?

    any help is greatly appreciated

    best regards

    tuo
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    which version of zabbix server and sender ? it should "just work"
    Zabbix 3.0 Network Monitoring book

    Comment

    • tuo
      Junior Member
      • Feb 2010
      • 18

      #3
      Versions as follows:

      ./zabbix_sender -h
      Zabbix Sender v1.8.3 (revision 13936) (16 August 2010)

      Server:
      Zabbix Server v1.8.3

      Tried it both with 1.8.3 sender from windows as from linux, server is running on CentOS 5

      best regards and thanks for any help you can provide!

      tuo

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        what is the error message ? how long after creating the items did you wait ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • tuo
          Junior Member
          • Feb 2010
          • 18

          #5
          Waiting seems to do the trick.

          Tested it again now to check any error messages, and now it works :/

          Stupid me :/

          Comment

          Working...