mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Force cast on some values before doing arithmetic Some devices (like Delta InsightPower G3 Mini SNMP Card) return STRING instead of numerical value. A few lines after, when doing a division on it, everything go bad ( / $divisor). I added force casting, no more crash and the values are OK. * Using helper cast_number() instead of intval() * Fix style * Add test data * Stop using deprecated function cast_number
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
1.3.6.1.2.1.1.1.0|4|Mini-SNMP
|
|
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.2254.2.5
|
|
1.3.6.1.2.1.1.5.0|4|<private>
|
|
1.3.6.1.2.1.33.1.2.1.0|2|2
|
|
1.3.6.1.2.1.33.1.2.2.0|2|0
|
|
1.3.6.1.2.1.33.1.2.3.0|2|338
|
|
1.3.6.1.2.1.33.1.2.4.0|2|29
|
|
1.3.6.1.2.1.33.1.2.5.0|2|554
|
|
1.3.6.1.2.1.33.1.2.6.0|5|
|
|
1.3.6.1.2.1.33.1.2.7.0|2|14
|
|
1.3.6.1.2.1.33.1.3.3.1.2.1|2|500
|
|
1.3.6.1.2.1.33.1.3.3.1.2.2|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.2.3|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.3.1|2|2360
|
|
1.3.6.1.2.1.33.1.3.3.1.3.2|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.3.3|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.4.1|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.4.2|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.4.3|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.5.1|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.5.2|5|
|
|
1.3.6.1.2.1.33.1.3.3.1.5.3|5|
|
|
1.3.6.1.2.1.33.1.4.1.0|2|3
|
|
1.3.6.1.2.1.33.1.4.2.0|2|500
|
|
1.3.6.1.2.1.33.1.4.4.1.2.1|2|2300
|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