Matt Kettler wrote:
At 05:00 PM 12/7/2004, Rob Kudyba wrote:
I saw GraphDefang mentioned here the other day and thought I'd give it a shot...sorry if this is the wrong place to ask but would anyone have an idea why the PNG images are displaying as broken? The graphdefang.pl is updating perfectly, i.e., w/out errors, but all of the PNG files always output as 0 KB files, e.g.:
0 Dec 7 16:55 daily_all_summary_line.png
do you have a fully functioning version of libpng installed?
Actually, it was not installed as I did not see it in the of Required Perl Modules (but I just added it per your note):
• File::ReadBackwards • GD • GD::Graph • GD::Text::Align (part of the GDTextUtils package) • Date::Parse; • Date::Format; • MLDBM • Storable (might already be installed with your perl)
If you installed libgd from source, do you have png.h installed in one of your /usr/include directories? (ie: if you used RPMs for libpng did you install libpng-devel too)
I installed from source, and: /usr/local/include/png.h /usr/local/include/libpng/png.h
I deleted all PNG files (per a suggestion off-list--thanks Paul C.) but still to no avail...Apache's error and access logs do not display anything noteworthy...and once again updating seems to work just fine:
./graphdefang.pl
Processing data file: /var/log/maillog
Max Unixtime from SummaryDB for herbie: 1102457656
1 new log lines processed for herbie
Processing graphs
hourly_all_summary_line
daily_all_summary_line
monthly_all_summary_line
hourly_non-spam_9recipient_stacked_bar
daily_non-spam_9recipient_stacked_bar
monthly_non-spam_9recipient_stacked_bar
hourly_spam_9recipient_stacked_bar
daily_spam_9recipient_stacked_bar
monthly_spam_9recipient_stacked_bar
hourly_spam_9sender_stacked_bar
daily_spam_9sender_stacked_bar
monthly_spam_9sender_stacked_bar
hourly_non-spam_9sender_stacked_bar
daily_non-spam_9sender_stacked_bar
monthly_non-spam_9sender_stacked_bar
But alas:
ls -l *.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 daily_all_summary_line.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 daily_non-spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 daily_non-spam_9sender_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 daily_spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 daily_spam_9sender_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 hourly_all_summary_line.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 hourly_non-spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 hourly_non-spam_9sender_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 hourly_spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 hourly_spam_9sender_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 monthly_all_summary_line.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 monthly_non-spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 monthly_non-spam_9sender_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 monthly_spam_9recipient_stacked_bar.png
-rw-r--r-- 1 root root 0 Dec 7 17:26 monthly_spam_9sender_stacked_bar.png