What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

HTTP Notification Action only Senor value

Votes:

0

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

http-action prtg value

Created on Mar 14, 2021 8:50:10 AM

Last change on Mar 15, 2021 7:22:13 AM by  Felix Wiesneth [Paessler Support]



6 Replies

Votes:

0

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]

Created on Mar 15, 2021 7:10:49 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

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

Created on Mar 17, 2021 4:51:07 PM

Last change on Mar 17, 2021 4:51:07 PM



Votes:

0

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]

Created on Mar 18, 2021 9:48:27 PM by  Benjamin Day [Paessler Support] (1,441) 2 1



Votes:

0

Hi Mister Day Yes I fetch the data using the HTTP Advanced Sensor

Created on Mar 21, 2021 4:00:53 PM



Votes:

0

I use a residual custom sensor

Created on Mar 21, 2021 4:07:38 PM



Votes:

0

Hello,

Could you please confirm if you tried using the HTTP Advanced Sensor, searching for a keyword? Does that work properly?

Best regards

Created on Mar 26, 2021 8:45:27 AM by  Isidora Jeremic [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.