NETWAYS / check_interfaces

Icinga check plugin for network hardware interfaces
GNU General Public License v2.0
11 stars 14 forks source link

Fix/number of interfaces bug #39

Closed RincewindsHat closed 4 months ago

RincewindsHat commented 4 months ago

This PR changes the computation of number of interfaces of the devices. Sometimes devices seem to report less interfaces than are really visible and check_interfaces just allocated memory for the reported number.

Execution of check_interfaces was unstable in that case, since some writes then occured beyond the borders of allocated memory.

This could possibly the reason for #4