check_nwc_health icon indicating copy to clipboard operation
check_nwc_health copied to clipboard

F5 BigIP major versions are hardcoded, breaking now 14.x releases

Open pbiering opened this issue 5 years ago • 0 comments

there is a hardcoded F5 BigIP major version check which need to be updated after every major release appears...that's not a good idea...

Suggested fix will catch 10...99 and not only 10...13

@@ -52654,7 +52655,7 @@
   $self->{sysProductVersion} = $self->get_snmp_object('F5-BIGIP-SYSTEM-MIB', 'sysProductVersion');
   $self->{sysPlatformInfoMarketingName} = $self->get_snmp_object('F5-BIGIP-SYSTEM-MIB', 'sysPlatformInfoMarketingName');
   if (! defined $self->{sysProductVersion} ||
-      $self->{sysProductVersion} !~ /^((9)|(10)|(11)|(12)|(13))/) {
+      $self->{sysProductVersion} !~ /^((9)|([1-9][0-9]))/) {
     $self->{sysProductVersion} = "4";
   }
   if ($self->mode =~ /device::hardware::health/) {

pbiering avatar Apr 17 '19 09:04 pbiering