Hi
I would like to connect to the Teltonika modem device using json-rpc 2 and using HTTP agent in zabbix server.
But I can not use a name, password to get data immediately in one step.
When I read the manual from the teltonika site, the first step is to get a token. The token expires after 300 s, so I read the item every 240s (4m). The second step is to get data using the token.
First I made an HTTP agent to POST json and get a token in response. I have successfully got json answer. I have set preprocessing using Jsonpath and store token every 4 minutes. In the next step, I would like to use a token to login and get data.
Is it possible to use (link) value from the first step to send another HTTP POST request?
First step - sucesfully DONE



Second step - I haven´t done yet automatically. Tested with token manually and works. See the picture below.

Can I substitute token with the latest value of token saved in key request (from my first step)? Something like: {my_host:request.last()} ? Is there another option?
I would like to connect to the Teltonika modem device using json-rpc 2 and using HTTP agent in zabbix server.
But I can not use a name, password to get data immediately in one step.
When I read the manual from the teltonika site, the first step is to get a token. The token expires after 300 s, so I read the item every 240s (4m). The second step is to get data using the token.
First I made an HTTP agent to POST json and get a token in response. I have successfully got json answer. I have set preprocessing using Jsonpath and store token every 4 minutes. In the next step, I would like to use a token to login and get data.
Is it possible to use (link) value from the first step to send another HTTP POST request?
First step - sucesfully DONE
Second step - I haven´t done yet automatically. Tested with token manually and works. See the picture below.
Can I substitute token with the latest value of token saved in key request (from my first step)? Something like: {my_host:request.last()} ? Is there another option?

Comment