Dear all
I have a RESTful service which needs to be posted with some JSON. Say the JSON is
{
"eodDate":"2015-08-04",
..
}
I would like to monitor that using web scenario and send relevant request. Problem isthat eodDate is calculated. It is a previous business date, also it need to be in yyyy-mm-dd format.
So I setup web scenario and successfulkly created request with embeddded variable for eodDate, so far so good. But now I need to pass actual value and here I stuck.
I can either try to make use of Zabbix macro but {DATE} is not suitable for that since it is in different format and also I can't see how to use date arithmetic (since I need yesterday).
On the other hand I could extract eodDate from some item (SQL) but I don't see any way to reference item.value in web scenario variables.
Third way would be to create another web service which just supplies this eodDate and then put calling and parsing output of this web service as a first step of the scenario (using {eod_date} = regex: parsing)
Could you the dear experts confirm nothing apart from third way is possible? I don't really want to deploy a new service, I would prefer to get eodDate by looking at some item or calculating it by Zabbix
Thank you
I have a RESTful service which needs to be posted with some JSON. Say the JSON is
{
"eodDate":"2015-08-04",
..
}
I would like to monitor that using web scenario and send relevant request. Problem isthat eodDate is calculated. It is a previous business date, also it need to be in yyyy-mm-dd format.
So I setup web scenario and successfulkly created request with embeddded variable for eodDate, so far so good. But now I need to pass actual value and here I stuck.
I can either try to make use of Zabbix macro but {DATE} is not suitable for that since it is in different format and also I can't see how to use date arithmetic (since I need yesterday).
On the other hand I could extract eodDate from some item (SQL) but I don't see any way to reference item.value in web scenario variables.
Third way would be to create another web service which just supplies this eodDate and then put calling and parsing output of this web service as a first step of the scenario (using {eod_date} = regex: parsing)
Could you the dear experts confirm nothing apart from third way is possible? I don't really want to deploy a new service, I would prefer to get eodDate by looking at some item or calculating it by Zabbix
Thank you
Comment