Ad Widget

Collapse

Format of values in Zabbix sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jammann
    Junior Member
    • Jan 2009
    • 4

    #1

    Format of values in Zabbix sender

    Hi all

    I have a script which invokes zabbix_sender (1.6.4, Linux) sometimes with size/byte value that are (depending on the dimension) encoded as

    1234
    12k
    1234k
    13m

    and so on. zabbix_sender fails, if the value is not a pure number (e.g. has 'k' or 'm' appended). I thought I could handle this by defining the Unit of the corresponding item, but I wasn't able to get it to work. I tried 'b' or 'B' for the Unit parameter.

    For time being, I fixed it by re-converting the value to pure numbers in my shell script, but I thought there should be a way to send such value to Zabbix directly?

    Any ideas what I've done wrong?

    CU, Joe
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Zabbix accepts pure number only, it does not perform any conversion currently.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • jammann
      Junior Member
      • Jan 2009
      • 4

      #3
      Thanks for the quick reply!

      I'll just keep my script then.

      CU, Joe

      Comment

      Working...