A Bug in MMM bitsCN.com recently triggered a bug in mmm because the stable version of the Net: ARP package on CPAN has been upgraded from 1.0 to 1.0.8.
Bug:
The agent cannot attach the VIP to the local machine.The following error is reported in the agent log: 06:26:47 FATAL Couldn't configure IP '10. 1.1.2 'on interface 'eth0': undef
Cause of bug:Line 1 in the MMM/Agent/Helpers/Network. pm file uses the following statement:
If ($ Net: ARP: VERSION <1.0 ){Because the original Version is 1.0, the Version can be automatically converted to the floating point type for comparison. After the Version is upgraded to 1.0.8, the Version is a string type. when compared with <, a syntax error is reported. Argument "1.0.8" isn' t numeric in numeric lt (<) at/usr/lib/perl5/vendor_perl/5.8.8/MMM/Agent/Helpers/Network. pm line 136.
Bug Fix:Directly modify line 136 in the MMM/Agent/Helpers/Network. pm file and change <to lt, as follows: if ($ Net: ARP: VERSION lt 1.0 ){
BitsCN.com