Create a SNMP Custom Table Sensor Error
See original GitHub issueWhat’s going on?
Hello
I’m trying to create a snmpcustomtable sensor and filter what I want to select.
Here’s the code that’s giving me a hard time.
$device = get-device -name XXX
$device | get-sensortarget -rawType "snmpcustomtable" -QueryParameters @{
"tableoid" = "1.3.6.1.2.1.31.1.1"
} -Timeout 5000 -ErrorAction Stop
I get the following error when I run the code above:
get-sensortarget : Cannot guess sensor target table: multiple tables found. Available tables: snmptable__check, columns__check, identcolumn, channel1column, channel1valuelookup, channel2column,
channel2valuelookup, channel3column, channel3valuelookup, channel4column, channel4valuelookup, channel5column, channel5valuelookup, channel6column, channel6valuelookup, channel7column, channel7valuelookup,
channel8column, channel8valuelookup, channel9column, channel9valuelookup, channel10column, channel10valuelookup.
In Zeile:1 Zeichen:11
+ $device | get-sensortarget -rawType "snmpcustomtable" -QueryParameter ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SensorTarget], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,PrtgAPI.PowerShell.Cmdlets.GetSensorTarget
Here’s what PRTG outputs if I do it manual in the webinterface:
I would of expected some sort of array with objects inside of it to iterate over them.
What am I missing? Or is this maybe a bug?
Best regards
Noah
Due Dilligance
- It wasn’t covered by the wiki, I swear!
- I have tried doing some basic research on this issue but haven’t been able to come up with anything. Please help!
Issue Analytics
- State:
- Created 2 months ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
PRTG Manual: SNMP Custom Table Sensor
The SNMP Custom Table sensor monitors entries from a table that is provided via the Simple Network Management Protocol (SNMP). You can create...
Read more >7.8.125 SNMP Custom Table Sensor
The SNMP Custom Table Sensor monitors entries from a table that is provided via Simple Network Management Protocol (SNMP). You can create one...
Read more >SNMP Custom Table Sensor
The SNMP Custom Table Sensor monitors entries from a table that is provided via Simple Network Management Protocol (SNMP). You can create one...
Read more >Issue #66 · lordmilko/PrtgAPI - Custom SNMP
The most likely explanation here is the latter reason: either the device you're trying to create this sensor on does not support SNMP...
Read more >PRTG Tutorial - SNMP Custom Sensors and SNMP ... - YouTube
... the OIDs in those MIBs to create SNMP Custom and SNMP Library sensors. ... Table of Contents: 0:00 - Intro & disclosure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @noaboa97 I tested with a table more than one entry. On GUI: before PowerShell Module commands:
After PowerShell commands: In my case, this is also working with more than one entry in Table.
I tried again and it’s not working. Same error. I can’t see the error with
-verbose
.Output:
So maybe they fixed it with the newest version of PRTG (23.2.84.1566+)?
Because @carsten0407 is running 23.2.83.1760 Maybe he can verify if it works with the newer version?
And I’m running 22.4.81.1532+ I’m on holiday for 3 weeks now but we’re going to update the servers at some point after my holidays. Then I can verify