Ad Widget

Collapse

Next Page Token in JSON on a Low Level Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Stock
    Junior Member
    • Mar 2020
    • 1

    #1

    Next Page Token in JSON on a Low Level Discovery

    Hi Forum,
    I am new to this place and also fairly new to Zabbix.
    Love it already, though!

    I am trying to auto discover a bunch of sensors via a JSON API using the "HTTP agent".
    It all works just fine except for a hurdle I am currently facing.

    The API on the other end only gives me 100 items per request and then refers to a "next page token" that has to be used to request the next set of sensors on an additional request.
    All fine on the command line using curl, but how (if even) is it possible to "walk" through all pages until there if no further next page token?

    From what I currently understand, the LLD is sort of static. It all has to be defined in one "pull request" and I cannot loop one single discovery rule until it stops on a certain end criteria (no next page token).

    Apart from using an external script, would you guys have any smart idea on how to do this natively in Zabbix?

    Many thanks and stay healthy!

    Best
    Christian

Working...