I have posted one more round of updates to the Logwatch packages. This converts 
  the output to full html with some better filters to keep the tables from 
blowing out on the right. It also squishes a bug I introduced in the last 
package with regards to the ClamAV report. If you installed my last package you 
should update. [The is there was no Date Stripping in the logfile conf
so your report shows everything in the current clamav.log]

Using html out requires a small change to one of the cgi's in EFW

This file /home/httpd/cgi-bin/logs.cgi/summary.dat must be patched to allow for 
the new file type. The patch is small I did not want to rebuild efw-base right 
now just for this since I'm not sure how much interest there is in this. But 
for the Endian team this is the patch. My patch keeps you backwards compatible.

[EMAIL PROTECTED]:/home/httpd/cgi-bin/logs.cgi # diff -u summary.dat summary.new
--- summary.dat 2006-09-26 11:19:24.000000000 -0700
+++ summary.new 2006-09-26 11:19:42.000000000 -0700
@@ -201,11 +201,19 @@

  my $header = 0;
  my @content;
+my $html_on = 0;

  if(!$skip)
  {
+  if ($log[0] =~ m/\<style/i) { $html_on = 1; };
    foreach $_ (@log)
    {
+
+  if ($html_on) {
+        print $_;
+        next;
+        }
+
   if (/^\s*--+ ([^-]+) Begin --+\s*$/) {
        # New Section. open box
        @content = ();


And here are the new packages

http://www.stellarcore.net/downloads/efw2-updates/logwatch-7.3.1-4.endian3.noarch.rpm
http://www.stellarcore.net/downloads/efw2-updates/logwatch-extras-7.3.1-4.endian3.noarch.rpm

http://www.stellarcore.net/downloads/efw2-updates/logwatch-7.3.1-4.endian3.src.rpm

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Efw-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/efw-user

Reply via email to