We use a series of XML Postdata requests to each of our webservers to check the performance of each server out side of the load balancer.

The postdata is doing a search for availability to a date set within the XML string. Is it possible to set this so that it will always use a date 3 months in advance - rather than us having to specify the data and manually update each sensor (Over 100 sensors) when the date has been passed.

I have pasted in an example of the XML we use - the part I am interested in automating is %3CArrivalDate%3E2018-01-10%3C%2FArrivalDate%

Data=%3CSearchRequest%3E%3CLoginDetails%3E%3CLogin%3E*******%3C%2FLogin%3E%3CPassword%3E******%3C%2FPassword%3E%3C%2FLoginDetails%3E%3CSearchDetails%3E%3CRegionID%3E279%3C%2FRegionID%3E%3CArrivalDate%3E2018-01-10%3C%2FArrivalDate%3E%3CDuration%3E1%3C%2FDuration%3E%3CRoomRequests%3E%3CRoomRequest%3E%3CAdults%3E2%3C%2FAdults%3E%3C%2FRoomRequest%3E%3C%2FRoomRequests%3E%3C%2FSearchDetails%3E%3C%2FSearchRequest%3E

Article Comments

Hi Glenn,

in HTTP notifications placeholders can be used, at least the ones shown here. One could make use of that and place the desired information into comments section of the device or sensor for example and pass that along to the Postdata. In the HTTP sensors itself I'm afraid that the Postdata field does not support those placeholders or any placeholders at all.

Kind regards,

Erhard


Oct, 2017 - Permalink

Hi Erhard/Glenn.

Did you ever get this working? I am sitting with a similar scenario in which the date (within the postdata that I am sending) needs to change. Would have been nice to have some variable to say change the date to +3 months on or so. Else I will also have to do this manually.

Thanks, Terence.


Mar, 2019 - Permalink

Hi Terence,

I don't think that this can be done what Glenn wanted to do, never heard back from him since then.

Kind regards,

Erhard


Mar, 2019 - Permalink