Ad Widget

Collapse

Convert String to integer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pkaramol
    Junior Member
    • Jan 2019
    • 4

    #1

    Convert String to integer

    Hi, kinda new to Zabbix so pls bear with me.

    I am using logstash zabbix plugin to sent events per second to a Zabbix server.

    Nonetheless, the eps metric arrives as string (when I selected "Numeric" as the item type, it could not be accepted by the server)

    How could I via pre-processing to convert this to integer?

    What I am currently receiving is in the attached image.

    Attached Files
  • tutunak
    Member
    • Mar 2016
    • 32

    #2
    Hi, Can you send a link to logstash plugin?

    Comment

    • splitek
      Senior Member
      • Dec 2018
      • 101

      #3
      I'm not using this plugin but for me "138.1118" is as float. So maybe item should be "numeric (float)". Or you can try preprocessing by regular expression, something like "([0-9]+)\." to cut from start to dot.

      Comment

      Working...