On Thursday 01 March 2007 7:55 pm, Stephen Gran wrote: > > Use of uninitialized value in addition (+) at /usr/local/bin/clamstats.pl > > line 86. > > Use of uninitialized value in addition (+) at /usr/local/bin/clamstats.pl > > line 86. > > Use of uninitialized value in concatenation (.) or string > > at /usr/local/bin/clamstats.pl line 217. > > > > Line 86 of the script is: > > > > $fcsigcount = ($fcmaincount + $fcdailycount); > > Initialize your variables before evalutaing them, e.g., add > > my $fcmaincount = my $fcdailycount = 0; > > before entering the foreach loop. > > > Line 217 is: > > print "<TD ALIGN=LEFT bgcolor=\#9999FF>Last Database Update</TD><TD > > ALIGN=RIGHT bgcolor=\#DCDCEE>$fcdate</TD><TR>"; > > Same problem - you are using the variable without initializing it. > The regex looks fine, though, so I'm not sure why it's not matching for > you. > > > Throughout the rest of the day I'd get an output like this: > > > > Use of uninitialized value in addition (+) at /usr/local/bin/clamstats.pl > > line 86, <FCLOG> line 11. > > Same issue. > > > Line 11 of the freshclam log reads: > > > > daily.inc is up to date (version: 2689, sigs: 11535, f-level: 13, > > builder: ccordes) > > You don't have a regex match for daily.inc, so nothing will match, so no > variable is incremented. > > > Previously, even after the upgrade to 0.90 it was running just fine. > > Did you recently turn on scripted updates?
Thanks Stephen, short reply, I didn't write the script, have no idea how to modify it, I know nil about regex's and yes I did turn on scripted updates back when I installed the rpm I built on the 14th of Feb. As I said the script had been working fine until the 04:03 run this morning, which means it worked fine at 00:03 -> 03:03 and back to the initial update. Chris -- Chris KeyID 0xE372A7DA98E6705C
pgpNtGJ742T7P.pgp
Description: PGP signature
_______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
