bashclub / checkmk-opnsense-agent

65 stars 14 forks source link

Support double or more digit interfaces #27

Closed FingerlessGlov3s closed 1 year ago

FingerlessGlov3s commented 1 year ago

Currently the regex only supports single digit interface numbers, for example if you have opt10 or even opt22, the logic will not clean up the interface name correctly, as it does not match the regex expression. Adding the + to look for one or more occurrences of a digit fixes the issue.

Before: Interface DMZ_(opt11) After: Interface modem

thorstenspille commented 1 year ago

Please check testing branch, should be fixed with https://github.com/bashclub/check-opnsense/commit/e1c5d1a121059f61eaab5db6954f778e59b41693