qmailmrtg7 only works with multilog style logging directories. It is looking to have a directory passed to it. Then it looks for the files within the last 5 minutes using the @tai64 naming format along with the current file, and the individual timestamp entries on each line.
Ken Jones On Monday 14 June 2004 06:49 pm, Mário Gamito wrote: > Hi, > > I'm not sure if this is the right place to pose this questions, but it > seems that qmailmrtg7 doesn't have a mailing list. > > So, i want to monitor SPAM and virus through qmailmrtg7. > > Well, i'm unable to monitor both SPAM and virus. > > SPAM: > > --------------------------------------------------------------- > > What is the file to filter ? > /var/spool/qmailscan/qmail-queue.log ? or > /var/spool/qmailscan/quarantine.log ? > > If i run *as root": > # /usr/local/bin/qmailmrtg7 S /var/spool/qmailscan/qmail-queue.log or > #/usr/local/bin/qmailmrtg7 S /var/spool/qmailscan/quarantine.log > > i get this error: > > "failed to open dir /var/spool/qmailscan/qmail-queue.log" > > > If i run *as root* > usr/bin/mrtg /etc/mrtg/qmail.mrtg.cfg > > i get this error: > > "ERROR: Target[spamd][_IN_] ' $$target[3]{$mode} ' did not eval into > defined data > ERROR: Target[spamd][_OUT_] ' $$target[3]{$mode} ' did not eval into > defined data > WARNING: Skipping Update of spamd, inlast is not defined > WARNING: Skipping Update of spamd, outlast is not defined" > > > My file and dir permissions: > > drwxr-x--- 5 qscand qscand 4096 Jun 14 17:46 qmailscan > -rw------- 1 qscand qscand 98086696 Jun 14 17:58 qmail-queue.log > -rw------- 1 qscand root 43 May 30 18:18 > qmail-scanner-queue-version.txt > drwxrwx--- 5 qscand qscand 4096 May 15 21:21 quarantine > -rw-r----- 1 qscand root 12288 May 30 18:18 > quarantine-attachments.db > -rw-rw---- 1 qscand qscand 4279 May 15 22:44 > quarantine-attachments.txt > -rw-rw---- 1 qscand qscand 665574 Jun 14 17:49 quarantine.log > drwx------ 42 qscand qscand 4096 Jun 14 17:58 tmp > lrwxrwxrwx 1 qscand qscand 31 May 30 18:18 viruses -> > /var/spool/qmailscan/quarantine > lrwxrwxrwx 1 qscand qscand 35 May 30 18:18 viruses.log -> > /var/spool/qmailscan/quarantine.log > drwxrwx--- 5 qscand qscand 4096 May 15 21:21 working > > > > ---------------------------------------------------------------- > > Anti virus: > > -------------------------------------------------------- > Well, it seems that qmailmrtg7 is configured for clamad. > Is there a way to configure it to f-prot? > --------------------------------------------------------- > > > Any help would be appreciated. > > Warm Regards, > Mário Gamito