Results 1 to 10 of 10

Thread: HOWTO : MRTG for Mailscanner

  1. #1
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099

    HOWTO : MRTG for Mailscanner

    I've stumbled across this:
    http://mailscannermrtg.sourceforge.net/

    -------------------------------------
    Summary:
    mailscanner-mrtg provides configuration files, web pages, and related perl scripts for mrtg to monitor many aspects of your MailScanner machine. With it you will be able to monitor things like:

    * Mail Relayed * Files in incoming queue
    * Spam Identified * Files in outgoing queue
    * Virii Caught * Memory (Ram) Used
    * Copies of Sendmail Running * Load Average
    * Copies of MailScanner Running * CPU Utilization
    * Disk Space Used in /var/spool * Disk Space Used in /

    And more coming soon!
    -------------------------------------

    And gave it a go with a RH9 system.
    You need to have followed my MailScanner Howto and to have mrtg installed (not necessarily configured)

    I'm not responsible for any damage that this can do to your Red Hat installation.

    Getting ready
    ---------------
    # up2date -u sysstat
    # wget http://aleron.dl.sourceforge.net/sou...tg-0.06.tar.gz

    # tar -zxvf mailscanner*

    # cd mailscanner*

    Edit and copy
    -----------------
    # pico -w mailscanner-mrtg.conf
    Change the following

    MTA = exim
    Outgoing Queue Dir = /var/spool/exim/input
    Incoming Queue Dir = /var/spool/exim.in/input

    # cp mailscanner-mrtg.conf /etc/MailScanner
    # cp mailscanner-mrtg.cfg /usr/local/mrtg-2/bin
    # cp mailscanner-mrtg /usr/sbin/
    # cp mailscanner-mrtg.include /etc/httpd/conf/

    # pico -w /etc/httpd/conf/httpd.conf

    Add this line to the bottom of your Apache httpd.conf file, after Include /etc/httpd/conf/ips.conf

    Include /etc/httpd/conf/mailscanner-mrtg.include


    # mkdir /var/www/html/mailscanner-mrtg
    # cp web/* /var/www/html/mailscanner-mrtg

    run this three times and ignore errors:
    # env LANG=C /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/bin/mailscanner-mrtg.cfg


    Restart apache
    # service httpd restart

    Put this line at the end of your /etc/crontab file:
    0-59/5 * * * * /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/bin/mailscanner-mrtg.cfg 1> /dev/null 2> /dev/null

    Point your browser at http://yourserver/mailscanner-mrtg

    -------------------------------------
    Let me know if there are security risks, mistakes,etc.
    Last edited by interfasys; 07-01-2004 at 12:43 AM.
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  2. #2
    Join Date
    Apr 2004
    Posts
    10
    hmm i installed it fine by getting the latest stable release... but the stats ( stats )dont update even after i added the cron and when i try to run it i get the following error:


    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg mailbytes'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mailbytes':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mailbytes':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg spam'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spam':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spam':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg loadavg'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg loadavg':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg loadavg':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg mta'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mta':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mta':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg mailscanner'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mailscanner':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg mailscanner':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg outqueue'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg outqueue':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg outqueue':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg inqueue'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg inqueue':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg inqueue':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg quarantine'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg quarantine':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg quarantine':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg memory'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg memory':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg memory':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg virus'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg virus':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg virus':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg cpu'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg cpu':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg cpu':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg spoolusage'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spoolusage':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spoolusage':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg tmpfsusage'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg tmpfsusage':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg tmpfsusage':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg rootusage'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg rootusage':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg rootusage':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg iptraffic'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg iptraffic':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg iptraffic':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg spamratio'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spamratio':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg spamratio':
    Expected a Number for 'out' but nothing'

    Can't locate MSMRTG/Debug.pm in @INC (@INC contains: /usr/lib/MailScanner-MRTG /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin/mailscanner-mrtg line 38.
    BEGIN failed--compilation aborted at /usr/sbin/mailscanner-mrtg line 38.
    WARNING: Could not get any data from external command '/usr/sbin/mailscanner-mrtg virusratio'
    Maybe the external command did not even start. (Illegal seek)

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg virusratio':
    Expected a Number for 'in' but nothing'

    WARNING: Problem with External get '/usr/sbin/mailscanner-mrtg virusratio':
    Expected a Number for 'out' but nothing'

    ERROR: Target[mail][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
    ERROR: Target[mail][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
    ERROR: Target[mailbytes][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
    ERROR: Target[mailbytes][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
    ERROR: Target[spam][_IN_] ' $target->[2]{$mode} ' did not eval into defined data
    ERROR: Target[spam][_OUT_] ' $target->[2]{$mode} ' did not eval into defined data
    ERROR: Target[loadavg][_IN_] ' $target->[3]{$mode} ' did not eval into defined data
    ERROR: Target[loadavg][_OUT_] ' $target->[3]{$mode} ' did not eval into defined data
    ERROR: Target[sendmail][_IN_] ' $target->[4]{$mode} ' did not eval into defined data
    ERROR: Target[sendmail][_OUT_] ' $target->[4]{$mode} ' did not eval into defined data
    ERROR: Target[mailscanner][_IN_] ' $target->[5]{$mode} ' did not eval into defined data
    ERROR: Target[mailscanner][_OUT_] ' $target->[5]{$mode} ' did not eval into defined data
    ERROR: Target[outqueue][_IN_] ' $target->[6]{$mode} ' did not eval into defined data
    ERROR: Target[outqueue][_OUT_] ' $target->[6]{$mode} ' did not eval into defined data
    ERROR: Target[inqueue][_IN_] ' $target->[7]{$mode} ' did not eval into defined data
    ERROR: Target[inqueue][_OUT_] ' $target->[7]{$mode} ' did not eval into defined data
    ERROR: Target[quarantine][_IN_] ' $target->[8]{$mode} ' did not eval into defined data
    ERROR: Target[quarantine][_OUT_] ' $target->[8]{$mode} ' did not eval into defined data
    ERROR: Target[memory][_IN_] ' $target->[9]{$mode} ' did not eval into defined data
    ERROR: Target[memory][_OUT_] ' $target->[9]{$mode} ' did not eval into defined data
    ERROR: Target[virus][_IN_] ' $target->[10]{$mode} ' did not eval into defined data
    ERROR: Target[virus][_OUT_] ' $target->[10]{$mode} ' did not eval into defined data
    ERROR: Target[cpu][_IN_] ' $target->[11]{$mode} ' did not eval into defined data
    ERROR: Target[cpu][_OUT_] ' $target->[11]{$mode} ' did not eval into defined data
    ERROR: Target[spoolusage][_IN_] ' $target->[12]{$mode} ' did not eval into defined data
    ERROR: Target[spoolusage][_OUT_] ' $target->[12]{$mode} ' did not eval into defined data
    ERROR: Target[tmpfsusage][_IN_] ' $target->[13]{$mode} ' did not eval into defined data
    ERROR: Target[tmpfsusage][_OUT_] ' $target->[13]{$mode} ' did not eval into defined data
    ERROR: Target[rootusage][_IN_] ' $target->[14]{$mode} ' did not eval into defined data
    ERROR: Target[rootusage][_OUT_] ' $target->[14]{$mode} ' did not eval into defined data
    ERROR: Target[iptrafficnew][_IN_] ' $target->[15]{$mode} ' did not eval into defined data
    ERROR: Target[iptrafficnew][_OUT_] ' $target->[15]{$mode} ' did not eval into defined data
    ERROR: Target[spamratio][_IN_] ' $target->[16]{$mode} ' did not eval into defined data
    ERROR: Target[spamratio][_OUT_] ' $target->[16]{$mode} ' did not eval into defined data
    ERROR: Target[virusratio][_IN_] ' $target->[17]{$mode} ' did not eval into defined data
    ERROR: Target[virusratio][_OUT_] ' $target->[17]{$mode} ' did not eval into defined data
    [root@xeon root]#

  3. #3
    Join Date
    Nov 2003
    Posts
    48
    any idea on how this can work on freebsd... I tried, but it kept complaing about shared GD library..."webalizer"

  4. #4
    Join Date
    Jun 2003
    Location
    Perth, Australia
    Posts
    280
    Installing on RHES 3

    Also, your 3rd step: # cd cd mailscanner*
    only 1 cd
    Mark Harris
    mharris@octane-design.biz

  5. #5
    Join Date
    Oct 2003
    Location
    Switzerland
    Posts
    2,099
    corrected the typo, but about the rest I can't help =/
    Olivier
    interfaCentre - We design custom hosting solutions

    Custom apps, scripts and configurations for easy and secure access to all hosting services
    Full Personal Information Management suite with mobile synchronisation
    PHP, Ruby, Node.js and Python hosting with 1-click app install

  6. #6
    Join Date
    Jun 2003
    Location
    Perth, Australia
    Posts
    280
    I'll let you know how RHES goes, the mail scanner + spam assasin + clam av went smooth.

    Just getting this box ready for production use
    Mark Harris
    mharris@octane-design.biz

  7. #7
    Join Date
    Jun 2003
    Location
    Perth, Australia
    Posts
    280
    works fine on RHE - thaks for the tutorial!

    One thing i have noticed - you might want to change your crontab to:
    */5 * * * * env LANG=C /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/bin/mailscanner-mrtg.cfg

    MRTG wont run without the env LANG=C
    Mark Harris
    mharris@octane-design.biz

  8. #8
    Join Date
    Oct 2003
    Posts
    163
    Hi!

    For mailscanner-mrtg-0.10.00

    i have mores errors and don't work, do you have simple HOW-TO ?

    Thanks!
    DRKT - IT Manager
    OS: RedHat, CentOS
    Apache 2.4 - Php 5.6 - MySQL 5.6
    Exim 4.89 - dovecot 2.2 - IMAP - SpamAssassin - ClamAV

  9. #9
    Join Date
    Sep 2006
    Location
    127.0.0.1
    Posts
    61
    you need to amend line 35 in /usr/sbin/mailscanner-mrtg

    if you still have the original dir from where you installed mailscanner-mrtg the files are there.

    IE my MSMRTG dir is /root/mailscanner-mrtg-0.10.00/lib/
    Nick
    Realtime Management LLP

  10. #10
    Join Date
    May 2008
    Posts
    2

    Mailscanner

    Hi,
    I install mailscanner, i see the square graphic, but nothing show, more in the graphic. if somebody can explan my why ...

Similar Threads

  1. HOWTO: Install MRTG (FULLY AUTOMATED)
    By loopforever in forum How-To Guides
    Replies: 246
    Last Post: 06-03-2011, 01:22 AM
  2. HOWTO: Install MRTG (FULLY AUTOMATED) 2.12.2
    By @how@ in forum How-To Guides
    Replies: 73
    Last Post: 05-12-2007, 01:10 AM
  3. HOWTO: Compile, configure and run MRTG
    By ProWebUK in forum How-To Guides
    Replies: 115
    Last Post: 08-21-2005, 08:18 AM
  4. HOWTO: Very easy RPM based MRTG installation
    By ProWebUK in forum How-To Guides
    Replies: 60
    Last Post: 03-12-2005, 09:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •