# site-report.pl script: undefined value as a SCALAR reference

**URL:** <https://community.zeek.org/t/site-report-pl-script-undefined-value-as-a-scalar-reference/1538>\
**Category:** Zeek\
**Created:** [September 28, 2009, 4:17pm UTC](https://community.zeek.org/t/site-report-pl-script-undefined-value-as-a-scalar-reference/1538 "2009-09-28T16:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edward\_Dean](https://avatars.discourse-cdn.com/v4/letter/e/41988e/32.png) [@Edward\_Dean](https://community.zeek.org/u/Edward_Dean)\
**Post date:** [September 28, 2009, 4:17pm UTC](https://community.zeek.org/t/site-report-pl-script-undefined-value-as-a-scalar-reference/1538/1 "2009-09-28T16:17:50Z")

</div>

Good Day,

My empty reports problem as been resolved, however, I am drying to dig  
a bit deeper into the site-report script error. An error is thrown if  
the script is run with summary\_only variable is set to 1 (default.)  
There error says there is an undefined value as a SCALAR reference.  
While the error can be avoided by setting the summary-only variable to  
0, you then will not get full reports generated.

The error seems to be that several variables containing the reportable  
data are not set due to the if-statement on line 492. This if  
statement sets variables (header, incident\_summ, incident\_details,  
system\_summ, scan\_summ, signature\_distribtution) only if summary\_only  
is set to 0. I do not see any reason for this if statement and upon  
removing it, I am able to get full reports rather than just the  
summary. Does anyone who is more familiar with this script know why  
that if-statement is there and if removing it will have any negative  
consequences?

Cheers,  
Edward

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:38pm UTC](https://community.zeek.org/t/site-report-pl-script-undefined-value-as-a-scalar-reference/1538/2 "2022-05-06T15:38:57Z")

</div>


