Ad Widget

Collapse

Item content retreived by API is limited to 255 characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ghislain
    Senior Member
    • Jun 2005
    • 160

    #1

    Item content retreived by API is limited to 255 characters

    hi,

    i try to get from api call an last() value and i can get it. My issue is that the size is limited to 255 characters. I cannot get the whole content of the item that is a text item.

    Is there any way to recover the complete item ? I am on 1.8.16 and use item.get api call.

    I tried to look at the source coe but just failed to recover any information usefull to me


    regards,
    Ghislain.
    Regards,
    Ghislain.
  • Pavels
    Member
    • Oct 2011
    • 83

    #2
    The last value stored in the item itself is indeed limited to 255 characters. To get the full value, you need to use the history API. It allows you to retrieve all of the values gathered by an item.

    You can find more information about the history API in the docs https://www.zabbix.com/documentation...pi/history/get

    Comment

    Working...