Hello all
My English is unfortunately not so good, for this reason I'll have it translated.
I want to send via PRTG only the value of a sensor via HTTP Action to an ESP8266.
But when I do this via PRTG I get with the placeholder %lastvalue not only the value 315 but:
TaskValueSet,6,1,315 Watt ($) "ActivePower"))_.
The URL which I have defined under HTTP-Action is called:
http://10.XX.XX.XX/control?cmd=TaskValueSet,6,1,%lastvalue
If I call the following HTTP Action via browser it will be transferred to the ESp coorectly:
http://10.XX.XX.XX/control?cmd=TaskValueSet,6,1,315
How can I get PRTG to transfer only the value? Many thanks for a suggestion
Article Comments
Hi Mister Day The sensor which PRTG queries and fetches the data I cannot influence. Unless there is a possibility to convert data in PRTG. Then of course I could pass the data only as integer to the other system. Can I convert, truncate etc. such data in PRTG?
Best regards
Mar, 2021 - Permalink
Which sensor are you using to accomplish this taks?
I think you should try using the HTTP Advanced Sensor as it can check for keywords.
Let me know how that sensor works for you.
Benjamin Day
[Paessler Support]
Mar, 2021 - Permalink
Hello,
Could you please confirm if you tried using the HTTP Advanced Sensor, searching for a keyword? Does that work properly?
Best regards
Mar, 2021 - Permalink
So the last value for the sensor you want to send from is
TaskValueSet,6,1,315 Watt ($) "ActivePower"))_.
If so, then PRTG will send this full line in the %lastvalue placeholder. Can you get the sensor to just return the integer of 315?
Benjamin Day
[Paessler Support]
Mar, 2021 - Permalink