Hi, <br> I have this conversion code that strips the temperature from the <br> string like this. <br> SNMPv2-SMI::enterprises.789.1.21.1.2.1.25.1 = STRING: "23C (73F) <br> ambient, 32C (89F), 32C (89F)" <br> <p>the conversion code <br>
</p><p># Conversion Code <br> sub String2Temp { <br> my $str = shift; <br> $str =~ /\((\d+)F\)(.*)ambient.*/i; <br> my $temp = $1; <br> return $temp; <br> </p><div id="qhide_55577" style="display: block;" class="qt">
} <br> <br></div>this works fine on my old montoring host, I'm tring to migrate to a <br> new host and now I get this error <br> <p>ERROR: File /etc/mrtg/TempConv.pl conversion code evaluation failed <br> syntax error at (eval 17) line 1, at EOF <br>
</p><p>Does anyone know what could be the issue? it's the exact same code, I <br> can't figure it out ... <br> </p><br>many thanks!<br><br>Versions:<br>mrtg-2.14.5-2<br>rrdtool-1.3.7-1.el5.rf<br>perl-5.8.8-18.el5_3.1<br>
RHEL5<br><br><br><br>