The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mrtg

Discussion in 'General Discussion' started by Mysteerie, Nov 28, 2004.

  1. Mysteerie

    Mysteerie Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    Are there any MRTG alternatives. Or does anyone have a tutorial for installing MRTG on a Fedora Core 2? I have used the searched button and read through the MRTG topics.

    I did find one tutorial for installing it on Fedora, but just wondering if there was any problems I would have by following the instructions (because it asks me to disable some stuff) when install MRTG so it can run properly.

    Would it cause my machine errors is what i"m asking.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    There's no problem installing MRTG at all. If you're using yum for app installs on Fedora, all you'd need to do to install it would be:

    yum install mrtg

    You'd then have to configure it, of course.
     
  3. Mysteerie

    Mysteerie Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    Thank you!

    Now the configuring is giving me a hard time, though I'm reading, but might as well post here in case someone can help.

    When running the cfg maker I get the following error:

    Code:
    root@hostname [~]#  cfgmaker --global 'WorkDir: /home/bihira/public_html/mrtg'            --global 'Options[_]: bits,growright'           --output /home/bihira/public_html/mrtg/cfg/mrtg.cfg               public@hostname.bihira.com
    --base: Get Device Info on public@hostname.bihira.com:
    SNMP Error:
    no response received
    SNMPv1_Session (remote host: "hostname.bihira.com" [208.53.170.53].161)
                      community: "public"
                     request ID: -1332906883
                    PDU bufsize: 8000 bytes
                        timeout: 2s
                        retries: 5
                        backoff: 1)
     at /usr/bin//../lib/mrtg2/SNMP_util.pm line 621
    SNMPWALK Problem for 1.3.6.1.2.1.1 on public@hostname.bihira.com::::::v4only
     at /usr/bin/cfgmaker line 775
    WARNING: Skipping public@hostname.bihira.com: as no info could be retreived
    
    --base: Writing /home/bihira/public_html/mrtg/cfg/mrtg.cfg
    I'm assuming it's because I have no SNMP (not sure what that quite is, going to google and search more about it). Though I'm not quite sure what my community is, so i used public which is default.

    Any insight or help would be appreciated.
     
  4. Mysteerie

    Mysteerie Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    Yup it was SNMP, I installed SNMP by using:

    service snmpd start

    Thoug now I'm getting the following error when I run cfgmaker:

    Code:
    root@hostname [/]# cfgmaker --global 'WorkDir: /home/bihira/public_html/mrtg'            --global 'Options[_]: bits,growright'           --output /home/bihira/public_html/mrtg/mrtg.cfg               public@208.53.170.53
    --base: Get Device Info on public@208.53.170.53:
    --base: Vendor Id:
    --base: Populating confcache
    --snpo: Skipping ifName scanning because public@208.53.170.53: does not seem to support it
    --base: Get Interface Info
    --base: Walking ifIndex
    --base: Walking ifType
    --base: Walking ifAdminStatus
    --base: Walking ifOperStatus
    --base: Walking ifSpeed
    --base: Writing /home/bihira/public_html/mrtg/mrtg.cfg
    root@hostname [/]#
    
    I tried searching as I alawsy do on google and multiple forums about the "ifName" error but can't find any answers, would anyone know how to fix this?
     
  5. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    This is most likely a warning, not an error, do you get something inside mrtg.cfg ?
     
  6. Mysteerie

    Mysteerie Well-Known Member

    Joined:
    Dec 29, 2003
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    16
    Yes I did, but it wasn't really anything. I think after doing my research it's telling me to configure SNMP, which I really don't know what to mess with in there, after hearing it's a security risk to even have enabled, I guess i have to do some more reading unless you have some suggestions? Thank you for replying btw. ;)

    Code:
    # Created by 
    # /usr/bin/cfgmaker --global 'WorkDir: /home/bihira/public_html/mrtg' --global 'Options[_]: bits,growright' --output /home/bihira/public_html/mrtg/mrtg.cfg public@208.53.170.53
    
    
    ### Global Config Options
    
    #  for UNIX
    # WorkDir: /home/http/mrtg
    
    #  or for NT
    # WorkDir: c:\mrtgdata
    
    ### Global Defaults
    
    #  to get bits instead of bytes and graphs growing to the right
    # Options[_]: growright, bits
    
    EnableIPv6: no
    WorkDir: /home/bihira/public_html/mrtg
    Options[_]: bits,growright
    
    ######################################################################
    # System: hostname.bihira.com
    # Description: Linux hostname.bihira.com 2.6.9-1.6_FC2 #1 Thu Nov 18 22:03:19 EST 2004 i686
    # Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
    # Location: Unknown (edit /etc/snmp/snmpd.conf)
    ######################################################################
     

Share This Page