Let remote sensors (HTTP Data Advanced and other custom-format sensors) update channel limits after the first scan
As a Systems Engineer who builds custom sensors for PRTG, I want PRTG to apply warning and error limits returned by my sensor on every scan (or on demand) so that I can add, change or remove thresholds in my script without recreating the sensor or editing each channel manually.
Background:
I wrote a sensor that may include warning and error thresholds. Due to a configuration error in the remote part of the sensor, an error threshold was missing.
It seems PRTG reads some values only when configuring a sensor for the first time, but never again, so any newly added, removed or changed threshold will remain as itr was before.
Furthermore it seems (see my other suggestion) that not even cloning a sensor will refresh those attributes.
Consider this example:
<Prtg>
<Text>OK</Text>
<Result>
<Channel>rdIO</Channel>
<Value>2.94246</Value>
<Float>1</Float>
</Result>
<Result>
<Channel>wrIO</Channel>
<Value>1.97040</Value>
<Float>1</Float>
</Result>
<Result>
<Channel>rdwait</Channel>
<Value>2.92495</Value>
<Float>1</Float>
<LimitMaxWarning>800</LimitMaxWarning>
</Result>
<Result>
<Channel>wrwait</Channel>
<Value>2.73229</Value>
<Float>1</Float>
<LimitMaxWarning>800</LimitMaxWarning>
</Result>
<Result>
<Channel>rwactive</Channel>
<Value>1.47123</Value>
<Float>1</Float>
<LimitMaxWarning>800</LimitMaxWarning>
</Result>
<Result>
<Channel>dcwait</Channel>
<Value>0</Value>
<LimitMaxWarning>800</LimitMaxWarning>
</Result>
<Result>
<Channel>fl_wait</Channel>
<Value>0</Value>
<LimitMaxWarning>800</LimitMaxWarning>
</Result>
</Prtg>
The "wr_wait" channel has a warning threshold of 800, but PRTG cannot find it when switching to "enable alerting based on limits" in "Edit Channel" (it says "Enter a value." for each of the four thresholds).
I think PRTG should support updating thresholds from the remote client sensor (i.e. from the sensor's data). It's very bad if you have to recreate a sensor, just to get the thresholds updated.
This also means that PRTG should not "copy once" the thresholds from the data to configuration, but instead fetch them together with the channel value.