On Thu, Mar 01, 2007 at 07:15:48PM -0600, Chris said:
> I run the above in two diffrent ways, once hourly to create a pretty html 
> page 
> and the other once a day to create a text output that is mailed to me. It 
> seems to have started with my 4:03am html run, here is the output from the 
> cronjob:
> 
> 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?
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | I've already told you more than I know. |
|  [EMAIL PROTECTED]             |                                         |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to