-
-
Notifications
You must be signed in to change notification settings - Fork 43
Description
What's going on?
Hello,
I am trying to configure a SNMP Traffic sensor on a specific interface of a network device.
For the moment my C# script looks like this:
snmpTrafficTargets = client.Targets.GetSensorTargets(77154, "snmptraffic");
var targetInterface = snmpTrafficTargets.FirstOrDefault(i =>
{
var parts = i.Name.Split(' ');
return parts.Length > 1 && parts[1].Equals(t.LocalInterface);
}
if (targetInterface != null)
{
var p = new RawSensorParameters($"Interface {t.LocalInterface}", "snmptraffic");
string rawId = targetInterface.Value;
p["interfacenumber_check"] = rawId;
client.AddSensor(77154, p);
}
From the web server logs I can see the following request:
POST /addsensor5.htm aliasavailable=&anti-csrf-token=***&errorintervalsdown_=1&id=77154&inherittriggers=1&"interfacenumber__check=7:7|(007) 7 Traffic|Connected|100 MBit/s|Ethernet|1|7|100000000|3|1|"&interfacenumber_=1&interfacenumber_=1&"interval_=60|60 seconds"&intervalgroup=0&intervalgroup=1&monitorstate_=0&"name=Base Sensor 1"&"namein_=Traffic In"&"nameout_=Traffic Out"&"namesum_=Traffic Total"&"parenttags_=hp_2510B-24 hpe"&primarychannel=&priority_=3&sensortype=snmptraffic&stack_=0&"tags_=bandwidthsensor snmptrafficsensor"&tmpid=354&trafficmode_=standinfornoselection 200 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36 Edg/144.0.0.0"
The server response is Error: PRTG was unable to complete the request. The server responded with the following error: Nothing was selected, no sensors could be created.
I tried to read the documentation and troubleshoot but unfortunately until now no success.
Thanks in advance
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!