Results 1 to 8 of 8

Thread: MRTG

  1. #1


    That's a silly question, but anyway....
    I've installed MRTG on RH8 to Monitor bandwidth on the firewall, it works.(rpm version) 2 silly questions:
    1. Is that mandatory to have an snmp running on the box that hosts mrtg?
    2. I can't figure out how mrtg is started, there is nothing in rc3.d or rc5.d and nothing in rc/local (But it is running)
    When I do ps -auxw | grep mrtg I see:
    root 2338 0.0 2.8 8800 7164 ? S 12:15 0:00 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
    So where is it loaded from?

  2. #2


    it is most likey loaded from xinetd - check /etc/xinetd.d/ it see what files are included with it run rpm -l MRTG

  3. #3


    It doesn't appear to be xinetd stuff, here is the output from chkconfig --list
    xinetd based services:
    chargen-udp: off
    chargen: off
    daytime-udp: off
    daytime: off
    echo-udp: off
    echo: off
    services: off
    servers: off
    time-udp: off
    time: off
    sgi_fam: on
    rsync: off

    As to the rpm -ql show a long list of file byut nothing that gives me an idea.....

  4. #4
    Senior Member
    Join Date
    Sep 2002


    ad 1) Yes, it is. The FAQs on the mrtg homepage have links to pages that explain snmp in depth.
    ad 2) Well, if it's not in the init scripts and you don't start it by hand, it's gotta be a crontab entry.

  5. #5


    crontab -e comes up empty, crontab -l shows 'no crontab for root' I miss something here, which crontab I should be looking at? (RH8)

  6. #6


    humms - how about rpm -ql | grep etc to see what is in that directory.

  7. #7
    Senior Member
    Join Date
    Sep 2002


    Not sure how redhat does things. When I installed mrtg using the debian packages they put a cron entry in /etc/cron.d/mrtg which I then removed and added an init.d script.

    It must be somewhere. As a last resort maybe do a grep for mrtg in the entire /etc directory. You will need some shell scripting to include all the subdirs, too.

  8. #8


    ls -la | grep cron ( in /etc)

    drwxr-xr-x 2 root root 4096 Jul 19 2002 cron.d
    drwxr-xr-x 2 root root 4096 Apr 1 05:44 cron.daily
    drwxr-xr-x 2 root root 4096 Jun 23 2002 cron.hourly
    drwxr-xr-x 2 root root 4096 Apr 1 05:28 cron.monthly
    -rw-r--r-- 1 root root 309 Apr 1 05:45 crontab
    drwxr-xr-x 2 root root 4096 Apr 1 05:28 cron.weekly

    I've got the following in cron.daily:
    00-logwatch 00webalizer 0anacron logrotate makewhatis.cron rpm slocate.cron tmpwatch

    cron.monthly contains 0anacron

    cron.weekly contains 0anacron makewhatis.cron

    cron.hourly is empty

Similar Threads

  1. MRTG help
    By zmunawar in forum Redhat / Fedora
    Replies: 3
    Last Post: 04-23-2007, 09:54 PM
  2. MRTG
    By dev_rhce in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 10-13-2004, 01:52 PM
  3. mrtg #2
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 04-09-2004, 04:50 AM
  4. mrtg
    By elovkoff in forum Linux - General Topics
    Replies: 2
    Last Post: 07-29-2002, 11:08 PM
  5. MRTG?!?!
    By Killer_Penguin in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 03-07-2002, 04:36 PM


Posting Permissions

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