Hi! On one of services my corporation use, I have some weired API interface. To retrieve data I that need, I must do 2 steps.
1) I need to make 1st POST request and retrieve ID of the session
2) I need to make 2nd POST request using ID retrieved in 1s step, as parameter. After that i will reciave my data.
Each time ID retrieved in 1st step in unique, so i cannot get ID one time and than use is all time, it changes every 10 minutes
I have 2 HTTP agent items that perfectrly work separately. I can get session IDs, than i copypaste that ID into 2nd HTTP agent item and it perfectly fetch data based on ID that i copypaste to it.
How i can automaticaly pass ID retrieved in step 1, as parameter to step 2 using zabbix?
I know i can create script with 2 curl commands and everything will be OK, i allready have it. But how i can solve my problem with zabbix only?
1) I need to make 1st POST request and retrieve ID of the session
2) I need to make 2nd POST request using ID retrieved in 1s step, as parameter. After that i will reciave my data.
Each time ID retrieved in 1st step in unique, so i cannot get ID one time and than use is all time, it changes every 10 minutes

I have 2 HTTP agent items that perfectrly work separately. I can get session IDs, than i copypaste that ID into 2nd HTTP agent item and it perfectly fetch data based on ID that i copypaste to it.
How i can automaticaly pass ID retrieved in step 1, as parameter to step 2 using zabbix?
I know i can create script with 2 curl commands and everything will be OK, i allready have it. But how i can solve my problem with zabbix only?
Comment