-
Problem report
-
Resolution: Fixed
-
Trivial
-
7.0.0
-
Debian 12
-
1
Hello, I noticed a small problem in "APC UPS by SNMP" and sibling templates.
On devices without external battery packs, discovery rule "External bad battery packs discovery" creates items that become unsupported with 'Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "-1"' error.
Reason for this is that discovery{#EXTERNAL_PACKS},1.3.6.1.4.1.318.1.1.1.2.2.6 find one result {#SNMPINDEX}=0, {#EXTERNAL_PACKS}=-1, meaning external packs not supported.
I propose putting filter on this discovery rule that {#EXTERNAL_PACKS} must not match ^-1$.
Does this belong to bugs or feature requests? Please tell me. Thanks.