Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 51
  1. #26
    Join Date
    Nov 2001
    Posts
    88
    cd /etc/mrtg
    pico check-mail

    Find this line "/var/spool/exim/input/*-H" without the quotes, it should be a few lines from the top and replace with:
    "/var/spool/exim_incoming/input/*-H" without the quotes.

    that should fix that one.

    then just

    /etc/rc.d/init.d/mrtg restart

    To restart mrtg


    What i did to keep the load down was just disable the email checks, my load now is 0.01 on that server

    <edit>signature removed</edit>
    Last edited by choon; 03-10-2004 at 07:47 AM.

  2. #27
    I have had 1000 emails sent to me saying:

    Daemonizing MRTG ...
    ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg/mrtg.pid

    How do I sotp this cron or someting?

  3. #28
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,643
    Originally posted by UniSol
    I have had 1000 emails sent to me saying:

    Daemonizing MRTG ...
    ERROR: I Quit! Another copy of mrtg seems to be running. Check /etc/mrtg/mrtg.pid

    How do I sotp this cron or someting?
    Try this:

    crontab -e

    Remove the MRTG line, save the cron file.

    - Matt

    <edit>signature removed</edit>
    Last edited by choon; 03-29-2004 at 07:39 PM.

  4. #29
    Join Date
    Mar 2004
    Location
    Poland, Lublin
    Posts
    75
    very nice

    thank you, its worked!
    Last edited by evilek; 03-24-2004 at 07:12 PM.

  5. #30
    I keep getting errors on RHE. Any special guidelines for that?

  6. #31
    I followed wolfstream's stuff, and got these messages:

    oot@root [/]# service mrtg restart
    Shutting down MRTG: [ OK ]
    Starting MRTG: Daemonizing MRTG ...

    root@root [/]# WARNING: Running '/etc/mrtg/system network eth0': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system network eth0'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system tcp': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system tcp'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system load': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system load'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system swap': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system swap'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system processes': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system processes'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system uptime': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system uptime'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system bytes2': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system bytes2'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system webhits': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system webhits'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system mailstats': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system mailstats'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system mailspam': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system mailspam'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system mail1': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system mail1'
    Maybe the external command did not even start. (No such file or directory)

    WARNING: Running '/etc/mrtg/system mailblocked': No such file or directory
    WARNING: Could not get any data from external command '/etc/mrtg/system mailblocked'
    Maybe the external command did not even start. (No such file or directory)

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda1':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda1':
    Expected a Number for 'out' but got ''

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda2':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda2':
    Expected a Number for 'out' but got ''

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda3':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda3':
    Expected a Number for 'out' but got ''

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda5':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda5':
    Expected a Number for 'out' but got ''

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda7':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda7':
    Expected a Number for 'out' but got ''

    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    /etc/mrtg/drivestats.sh: line 1: mmcalc: command not found
    WARNING: Problem with External get '/etc/mrtg/drivestats.sh hda8':
    Expected a Number for 'in' but got ''

    WARNING: Problem with Externale get '/etc/mrtg/drivestats.sh hda8':
    Expected a Number for 'out' but got ''
    Can anyone help ?

    Thanks,
    Stefan

  7. #32
    Join Date
    Feb 2004
    Location
    Delray Beach, FL
    Posts
    77
    Hi folks,

    That file is not available anymore mrtg-2.9.17-1cpanel.i386.rpm, can someone share please?

  8. #33
    Download isnt available anymore. I need it too.

  9. #34
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889

  10. #35
    ^^Thanks, im getting this though.
    Shutting down MRTG: [ OK ]
    Starting MRTG: Daemonizing MRTG ...

    root@test [~]# /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'index'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'tcp'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'load'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'swap'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'processes'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'uptime'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'cpu'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'localhost.mem'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'mail-host-email-totals'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'mail-host-email-queue'
    Signal was 0, Returncode was 127
    /usr/bin/rateup: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
    WARNING: rateup died from Signal 0
    with Exit Value 127 when doing router 'mail-host-email-count'
    Signal was 0, Returncode was 127

  11. #36
    How can i view total Gigs transfered like over the last 30 days

  12. #37
    Join Date
    Feb 2004
    Location
    Delray Beach, FL
    Posts
    77
    Originally posted by choon
    Take a look at this URL
    http://download.cheetaweb.com/redhat/7.3/mrtg/
    Actual file is:
    http://download.cheetaweb.com/redhat...panel.i386.rpm

    Thanks a lot, didn't go in that directory, just looked in the root one.

  13. #38
    Anyone got the link to a cPanel Fedora Core 1 rpm please?

    Thanks.

    <<< Signature removed >>>
    Last edited by choon; 05-17-2004 at 06:20 PM.

  14. #39
    Join Date
    Jul 2001
    Location
    Singapore
    Posts
    1,889
    That RPM can be used for Fedora Core 1

  15. #40
    thanks

    <<< Signature removed >>>
    Last edited by choon; 05-20-2004 at 05:34 PM.

  16. #41
    Join Date
    Oct 2002
    Posts
    292
    Alternate download:

    http://1gighost.com/downloads/mrtg-2.9.17-1cpanel.i386.rpm

  17. #42
    Join Date
    Aug 2002
    Location
    DC
    Posts
    3,643
    I've done some revisions to my last post about Fedora & CPanel, here's the actual way to make it work:

    ------------------------------

    Here's yet another revision to my MRTG tutorials. Using Fedora on one server, CPanel kept overwriting MRTG with a newer version that didn't have all of the features built into the RPM. After talking with Dan from BurstNet, he gave me a few suggestions which worked out. Here's an all in one tutorial:

    Remove previous versions of MRTG:
    Code:
    rpm -e mrtg
    Code:
    pico /etc/sysconfig/i18n
    change LANG to LANG="en_US"

    Code:
    reboot
    Code:
    rpm -e mrtg
    cd /usr/lib
    ln -s libpng.so.3 libpng.so.2
    rpm http://download.cheetaweb.com/redhat/7.3/mrtg/mrtg-2.9.17-1cpanel.i386.rpm -Uvh
    service mrtg restart
    service mrtg restart
    service mrtg restart
    service mrtg restart
    service mrtg restart
    chkconfig --add mrtg
    Yes, you may need to restart mrtg that many times before it works properly.

    If you'd like to replace the email graphs with graphs that have oldest on the left & newest on the right, just like the other graphs, replace the /etc/mrtg.cfg file with the contents of the attached text file (see first page). Otherwise, the email graphs will be graphed in the reverse direction of the other graphs.

    Once you've made any revisions to mrtg.cfg, do the following:
    Code:
    chattr +i /usr/bin/mrtg
    chattr +i /etc/mrtg/mrtg.cfg
    That way, CPanel will not be able to overwrite your configurations. If you need to edit the config file, you must first do "chattr -i /etc/mrtg/mrtg.cfg" and then "chattr +i /etc/mrtg/mrtg.cfg" once you've saved the file again.

    To stop those pesky cron errors that MRTG will start giving you, do the following:
    Code:
    rm -f /etc/cron.d/mrtg*
    One last step. CPanel uses yum to upgrade things on Fedora, so here's the final step to stop CPanel from even attempting to download MRTG.
    Code:
    pico /etc/yum.conf
    Add this line in the [main] section:
    Code:
    exclude=mrtg
    Uninstall instructions:
    Code:
    chattr -i /usr/bin/mrtg
    chattr -i /etc/mrtg/mrtg.cfg
    rpm -e mrtg
    That should be it!

    - Matt

  18. #43

    passwrod protection

    First I want to thank you for putting together a nice addon! I just wanted to add a tiny part in case anyone is interested in knowing how to password protect the mrtg pages.




    edit /usr/local/apache/conf/httpd.conf and add AuthConfig to the global AllowOverride directive so it looks like this.
    AllowOverride None AuthConfig

    restart apache
    Then in /usr/local/apache/htdocs/mrtg/ create your .htaccess file for password protection.
    Also, add
    Alias /mrtg/ /usr/local/apache/htdocs/mrtg/
    to the VirtualHost you want to view besides using http://server-ip/mrtg/ which you can disable by removing the global Alias /mrtg/ /usr/local/apache/htdocs/mrtg/ and restarting apache

  19. #44
    Join Date
    Jan 2004
    Location
    Sydney
    Posts
    148
    Will the tutorial on this page (2nd to last post) work on a CentOS CPanel server?

  20. #45
    i keep getting an error complaining that /etc/mrtg/system doesn't exist , if anyone can give me the contents of this scipt i would HIGHLY appreciate it

  21. #46
    Join Date
    May 2003
    Location
    Massachusetts, USA
    Posts
    298
    Look up earlier in the thread. The system script is given there.
    Mark Oberg
    Techweenies.com

    (No longer affiliated with Uneedawebsite.com)

  22. #47
    Originally posted by uneedawebsit
    Look up earlier in the thread. The system script is given there.
    ummm...no its not, there might be additions for it, but the full script is not there

  23. #48
    Join Date
    Mar 2004
    Location
    Poland, Lublin
    Posts
    75

  24. #49
    Originally posted by ddominey86
    ummm...no its not, there might be additions for it, but the full script is not there
    Does anybody know how to solve this /etc/mrtg/system doesn't exist ?
    NMSERVERS - managed hosting, administration, performance analysis and system security services

  25. #50
    Join Date
    Jun 2005
    Posts
    51
    Can anybody explain installing mrtg again for latest tar.gz version? I tried lost of time but I couldn't do.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

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