Hi !

Why is not possible to push a data string in value of the HTTP Push sensor ? I have many information in string (number of version of the software of my corp...) Is it possible to modify this directly in database ?


Article Comments

PRTG can only evaluate numerical values in the channels, only the text field allows for strings :/


Kind regards,
Stephan Linke, Tech Support Team


Jun, 2018 - Permalink

Is it possible to pass the HTTP Push Sensor in Field text ? or in numerical values... Because actually this sensor is only on Integer... If is not possible how to obtain the code of this sensor for create a custom sensor ?


Jun, 2018 - Permalink

You'll need to use the <text></text> field outside of a channel tag:

  <prtg>
      <result>
         <channel>First channel</channel>
         <value>10</value>
      </result>
      <result>
         <channel>Second channel</channel>
         <value>20</value>
   </result>
   <text>My Sensor Message</text>
</prtg>

Jun, 2018 - Permalink

Yeah juste i need to use <text> on value... Because the text "Sensor Message" was not displayed on the dashboard...


Jun, 2018 - Permalink

But now it is? :)


Jun, 2018 - Permalink

It's same Lol juste i think you have not understand my question :)

I have a HTTP Push Sensor in this sensor I have many channel (One channel per server). In all server in the manager of my app's i have an powershell to push the version of exe to the Push sensor HTTP. The problème the version of my software is 2.32.187.620 (exemple).

HTTP Push sensor can only get the value in INT (integer). If i post the software version with you'r text balise he is only print on PRTG the latest value received not all value... I request an method to modify this sensor for accept value in string format... If is not possible how to obtain the original code of this sensor for create an custom ?


Jun, 2018 - Permalink

Well, that's a basic PRTG "problem" - we cannot evaluate strings into channels. While we don't give out any source code of the core, it would be of no use for you. You'll need to do that in the script that translates that string into a numeric value beforehand and work with Lookups :)


Kind regards,
Stephan Linke, Tech Support


Jun, 2018 - Permalink