Ad Widget

Collapse

zabbix sender and string with whitespaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixflic
    Member
    • Jan 2012
    • 39

    #1

    zabbix sender and string with whitespaces

    Hi guys,

    how can I send a string value via zabbix-sender to an Item,
    if this string contains whitespaces ?

    I noticed that string shown by gui is truncated at first space occurrence.

    Item type is Zabbix trapper and type of information is Text (but also tried Character and Log).

    Many thanks

    bye !!
  • justinc
    Junior Member
    • Aug 2011
    • 20

    #2
    Are you putting your output value in quotes?

    ./zabbix_sender -z <zabbix-server> -k test -s <host> -o "test string"

    If you leave quotes off it will only grab the first word.

    Comment

    • zabbixflic
      Member
      • Jan 2012
      • 39

      #3
      hi justinc
      putting <test string> between ' ' solved.

      thank you so much

      Comment

      Working...