i would like to use snmp oid queries to build a routing table from a router. As well, an arp table. Is this possible with prtg? Thanks.


Article Comments

hallo,

this is not possible out of the box at the moment, sorry.


Apr, 2012 - Permalink

What about handling string values for a custom sensor? Is this possible? Thank you.


Apr, 2012 - Permalink

Hallo,

did you take a look at the SNMP Custom String sensor already?

https://www.paessler.com/manuals/prtg9/snmp_custom_string_sensor.htm


Apr, 2012 - Permalink

I did look at it. However it handles single oid values only, which won't help with a table. Is there going to be support for string values with an exe/script sensor? We have written a script that will pull the values and put them in a table, and we have that set up as a exe/script sensor, but while PRTG does return the values, it sets the sensor to an error state for a "Response not wellformed" reason. Is this a limitation of PRTG or of the formatting we are passing? Thanks.


Apr, 2012 - Permalink

Hallo,

in the sensor settings, select "write EXE result to disk"

then send the script and the result to

support@paessler.com


Apr, 2012 - Permalink

Can you tell me where to get the result, please? I have checked the system32\logfiles directory as well as the prtg installation directory for any text files created once I enabled write exe result to disk and do not see anything. Thanks.


Apr, 2012 - Permalink

hallo,

the file should be in the Logs (system) folder

XP/2003: C:\Documents and Settings\All Users\Application Data\Paessler\PRTG Network Monitor\Logs (System)

Vista/2008: C:\ProgramData\Paessler\PRTG Network Monitor\Logs (System)


Apr, 2012 - Permalink

I emailed the requested items yesterday. Can confirm receipt?


Apr, 2012 - Permalink

we got the files and are looking at them at the moment.


Apr, 2012 - Permalink

I received an email today that stated, "I doubt that we will see this any time soon, sorry." Can you please tell me, is this a limitation of PRTG or of the formatting we are passing? Specifically, with respect to the question of the sensor, when PRTG does return the values, it sets the sensor to an error state for a "Response not wellformed" reason. Thanks.


May, 2012 - Permalink

Hallo,

the longer answer is this.

please take a look at the API documentation abut the form a standard EXE/Script sensor or an Advanced EXE/Script Sensor need to return data for PRTG being able to read it. For more information, see PRTG Manual: Custom Sensors.

PRTG can not interpreter or display all the information in the txt the script returns.

The logic to analyze the files and to compare them must be within the script.

Similar to the File Content Sensor that is already available and partially does what you are looking for.


May, 2012 - Permalink