We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As reported here: acassen/keepalived#866
The checks not report correctly some IP Classes.
I managed to solve the issue by changing a bit the chk_vrrp_hex2inet and chk_ipvs_hex2inet functions as belove:
check_keepalived_vrrp.pl
293 sub chk_vrrp_hex2inet($) 294 { 295 my $hexstr = shift; 296 my $oct; 297 my @octs; 298 $hexstr =~ s/"//g; 299 if (length($hexstr) == 4) 300 { 301 for $oct (split(//, $hexstr)) 302 { 303 $octs[@octs] = ord($oct); 304 }; 305 } else { 306 for $oct (split(/ /, $hexstr)) 307 { 308 $octs[@octs] = hex($oct); 309 }; 310 }; 311 312 return(join('.', @octs)); 313 };
check_keepalived_ipvs.pl
323 sub chk_ipvs_hex2inet($) 324 { 325 my $hexstr = shift; 326 my $oct; 327 my @octs; 328 $hexstr =~ s/"//g; 329 if (length($hexstr) == 4) 330 { 331 for $oct (split(//, $hexstr)) 332 { 333 $octs[@octs] = ord($oct); 334 }; 335 } else { 336 for $oct (split(/ /, $hexstr)) 337 { 338 $octs[@octs] = hex($oct); 339 }; 340 }; 341 342 return(join('.', @octs)); 343 };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As reported here: acassen/keepalived#866
The checks not report correctly some IP Classes.
I managed to solve the issue by changing a bit the chk_vrrp_hex2inet and chk_ipvs_hex2inet functions as belove:
check_keepalived_vrrp.pl
check_keepalived_ipvs.pl
The text was updated successfully, but these errors were encountered: