masterzen / mysql-snmp

Net-SNMP perl agent for monitoring MySQL servers
http://www.masterzen.fr/software-contributions/mysql-snmp-monitor-mysql-with-snmp/
GNU General Public License v2.0
67 stars 33 forks source link

silence Math::BigInt error if we do not have optional GMP #6

Closed ktdreyer closed 13 years ago

ktdreyer commented 13 years ago

GMP is optional to Math::BigInt. I have a patch, hopefully GitHub allows me to attach it.

ktdreyer commented 13 years ago

--- mysql-agent 2010-09-30 14:30:24.000000000 -0400 +++ mysql-agent 2010-09-30 15:08:03.000000000 -0400 @@ -35,7 +35,7 @@

Math::BigInt reverts to perl only

automatically if GMP is not installed

-use Math::BigInt lib => 'GMP'; +use Math::BigInt try => 'GMP';

sub new { bless {}, shift;

ktdreyer commented 13 years ago

Well that was as clear as mud. Basically, replace "lib" with "try".