lausser / check_nwc_health

nwc = network component. This plugin checks lots of aspects of routers, switches, wlan controllers, firewalls,.....
http://labs.consol.de/nagios/check_nwc_health
GNU General Public License v2.0
146 stars 88 forks source link

sub module calc_usage exists 2 times in plugins-scripts/Classes/IFMIB/Component/InterfaceSubsystem.pm #291

Open molekuul opened 2 years ago

molekuul commented 2 years ago

the submodule calc_usage exists 2 times in the plugins-scripts/Classes/IFMIB/Component/InterfaceSubsystem.pm This causes the second version only to be called, however this version fails with a devision by zero if the switch has a configguration issue at one of the network ports. This has been corrected at the first version of the sub module. This working version starts at lin 743 the failing second version starts at line 1315

molekuul commented 2 years ago

it seems that both modules ar in a different package space, however the submodule isn't called with a package version so only the last version defined is being used

This 32/64 bit seems a little bit weird