Hi,

Can PRTG be configured to collect data via Telnet, or by interpreting pages from the device's web interface? The specific context is consumer grade DSL equipment where typically SNMP is supported poorly or not at all.

Thanks, Tony S


Article Comments

In order to gather values from websites, the values have to be encapsulated in brackets, e.g. [5]. Retrieving values via Telnet is also possible, but you have to program a script that connects via Telnet, gets the output, parses it, and formats it for PRTGs custom sensors.

A quick howto for Telnet and PowerShell can be found here.

The output has to be either XML formatted or simply:
<value>:<message>

The XML format has to look like this:

<prtg>
  <result>
     <channel>[Requests] Current</channel>
     <value>15519726</value>
  </result>
  <result>
     <channel>[SSL] Handshakes failed</channel>
     <value>15519726</value>
  </result>
</prtg>

Further information about the custom sensors can be found in your very own PRTG installation, under the following URL: http://<your-prtg-server>/api.htm?tabid=7.


Jan, 2016 - Permalink