Installing Mrtg

Discussion in 'Site & Server Administration' started by megadl, May 14, 2008.

  1. #1
    i tried
    yum install mrtg

    but i got an error

    root@server1 [~]# yum install mrtg
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    extras                    100% |=========================| 1.1 kB    00:00
    updates                   100% |=========================|  951 B    00:00
    base                      100% |=========================| 1.1 kB    00:00
    addons                    100% |=========================|  951 B    00:00
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package mrtg.i386 0:2.14.5-2 set to be updated
    --> Running transaction check
    --> Processing Dependency: perl-Socket6 for package: mrtg
    --> Processing Dependency: perl-IO-Socket-INET6 for package: mrtg
    --> Finished Dependency Resolution
    Error: Missing Dependency: perl-Socket6 is needed by package mrtg
    Error: Missing Dependency: perl-IO-Socket-INET6 is needed by package mrtg
    root@server1 [~]#
    Code (markup):
    mine is
    CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0

    anyone can helmp me ?
     
    megadl, May 14, 2008 IP
  2. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Install perl-Socket6 and perl-IO-Socket-INET6 and it should work. Yum isn't a great way to install things. For mrtg to work it needs to two perl dependencies to work, but yum can't find those.
     
    calum, May 15, 2008 IP
  3. megadl

    megadl Peon

    Messages:
    355
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i already installed them both through WHM in "Install a Perl Module"
    like
    spawn /scripts/perlinstaller IO::Socket::INET6
    Method: Perl Expect
    Fetching CPAN timestamp...Done
    
    Testing connection speed...(this could take a while)...Done
    
    Ping:8.016 Testing connection speed to ftp.wayne.edu using pureperl...(156500.00 bytes/s)...Done
    
    Ping:13.344 Testing connection speed to cpan.pair.com using pureperl...(52050.00 bytes/s)...Done
    
    Ping:1.208 Testing connection speed to ftp.osuosl.org using pureperl...(52016.67 bytes/s)...Done
    
    Three usable mirrors located
    
    Mirror Check passed for ftp.wayne.edu (/index.html)
    
    Unknown config variable 'less'
    
    commit: wrote '/usr/lib/perl5/5.8.8/CPAN/Config.pm'
    
    CPAN: File::HomeDir loaded ok (v0.69)
    
    CPAN: Storable loaded ok (v2.18)
    
    Going to read /home/.cpan/Metadata
    
      Database was generated on Thu, 15 May 2008 09:29:49 GMT
    
    cPCPAN: Module (File::Spec) holdback (3.2701 held back to 3.25)
    
    cPCPAN: Module (Compress::Raw::Zlib) holdback (2.010 held back to 2.005)
    
    cPCPAN: Module (IO::Compress::Base) holdback (2.010 held back to 2.005)
    
    cPCPAN: Module (IO::Uncompress::Gunzip) holdback (2.010 held back to 2.005)
    
    cPCPAN: Module (Compress::Zlib) holdback (2.010 held back to 1.42)
    
    Test::Harness is up to date (3.10).
    
    ExtUtils::CBuilder is up to date (0.23).
    
    ExtUtils::MakeMaker is up to date (6.44).
    
    Module::Build is up to date (0.2808).
    
    File::Spec is up to date (3.25).
    
    File::Temp is up to date (0.20).
    
    Scalar::Util is up to date (1.19).
    
    Test::More is up to date (0.80).
    
    Data::Dumper is up to date (2.121_08).
    
    Digest::SHA is up to date (5.47).
    
    File::HomeDir is up to date (0.69).
    
    Compress::Raw::Zlib is up to date (2.005).
    
    IO::Compress::Base is up to date (2.005).
    
    IO::Uncompress::Gunzip is up to date (2.005).
    
    Compress::Zlib is up to date (1.42).
    
    IO::Zlib is up to date (1.09).
    
    Archive::Tar is up to date (1.38).
    
    Archive::Zip is up to date (1.23).
    
    Net::Cmd is up to date (2.29).
    
    Net::FTP is up to date (2.77).
    
    Term::ReadKey is up to date (2.30).
    
    Term::ReadLine::Perl is up to date (1.0302).
    
    YAML is up to date (0.66).
    
    Text::Glob is up to date (0.08).
    
    CPAN is up to date (1.9205).
    
    File::Which is up to date (0.05).
    
    IO::Socket::INET6 is up to date (2.54).
    
    perlmod--Install done
    Code (markup):
    spawn /scripts/perlinstaller Socket6
    Method: Perl Expect
    Fetching CPAN timestamp...Done
    
    Testing connection speed...(this could take a while)...Done
    
    Ping:8.016 Testing connection speed to ftp.wayne.edu using pureperl...(156500.00 bytes/s)...Done
    
    Ping:13.344 Testing connection speed to cpan.pair.com using pureperl...(52050.00 bytes/s)...Done
    
    Ping:1.208 Testing connection speed to ftp.osuosl.org using pureperl...(312100.00 bytes/s)...Done
    
    Three usable mirrors located
    
    Mirror Check passed for ftp.osuosl.org (/index.html)
    
    Unknown config variable 'less'
    
    commit: wrote '/usr/lib/perl5/5.8.8/CPAN/Config.pm'
    
    CPAN: File::HomeDir loaded ok (v0.69)
    
    CPAN: Storable loaded ok (v2.18)
    
    Going to read /home/.cpan/Metadata
    
      Database was generated on Thu, 15 May 2008 09:29:49 GMT
    
    Socket6 is up to date (0.20).
    
    perlmod--Install done
    Code (markup):
    rebooted..
    still the same error.
     
    megadl, May 15, 2008 IP
  4. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #4
    calum, May 16, 2008 IP
  5. megadl

    megadl Peon

    Messages:
    355
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    does anyone know
    cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
    --global 'Options[_]: bits,growright' \
    --output /home/mrtg/cfg/mrtg.cfg \
    community@ router.abc.xyz
    what should i put here community@ router.abc.xyz ?
     
    megadl, May 19, 2008 IP
  6. megadl

    megadl Peon

    Messages:
    355
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    now i got this error

    root@server1 [/usr/local/src/mrtg-2.15.0/bin]# ./cfgmaker --global 'WorkDir: /home/megadli/public_html/mrtg' \
    > --global 'Options[_]: bits,growright' \
    > --output /usr/local/mrtg-2/mrtg.cfg \
    > public@localhost
    --base: Get Device Info on public@localhost:
    SNMP Error:
    no response received
    SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
    community: "public"
    request ID: 326081070
    PDU bufsize: 8000 bytes
    timeout: 2s
    retries: 5
    backoff: 1)
    at /usr/local/src/mrtg-2.15.0/bin/../lib/mrtg2/SNMP_util.pm line 627
    SNMPWALK Problem for 1.3.6.1.2.1.1 on public@localhost::::::v4only
    at ./cfgmaker line 915
    WARNING: Skipping public@localhost: as no info could be retrieved

    --base: Writing /usr/local/mrtg-2/mrtg.cfg


    EDIT: NVM, FIGURED IT ALL OUT :D
     
    megadl, May 19, 2008 IP