Ad Widget

Collapse

Length of numerixc strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mitchpeter
    Junior Member
    • Nov 2022
    • 8

    #1

    Length of numerixc strings

    When I retrieve a status code from a particular device (A Fuji Xerox copier), Zabbix sometimes shows the code as a single character (eg exclamation mark for 33) and sometimes as a three character hex string, where the 3rd character is a space (eg "A0 ").
    Unfortunately the length of the string "20 " is returned as 1 by the ByteLength string function. This is the case even when the string is set using a Javascript script ( str = "11 "; return str;​ ), and is irrespective of whether the string's data type is set to character, text or log.
    I am using Zabbix 5.4.9.

Working...