LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-03-2008, 07:13 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Mrtg ???


I went through standard docs through http://kbase.redhat.com/faq/FAQ_85_10778.shtm and tried configuring the MRTG. But it seems to throw various error like this the moment I ran cfgmaker.
Code:
[root@isd mrtg]# cd /var/www/mrtg/
[root@isd mrtg]# cfgmaker --global "WorkDir: /var/www/html/mrtg" --global "Optio                                             ns[_]: growright,bits" --output=var/www/mrtg/mrtg.cfg public@10.14.2.146
--base: Get Device Info on public@10.14.2.146:
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494310
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for sysDescr sysContact sysName sysLocation sysObjectID on publi                                             c@10.14.2.146:
 at /usr/bin/cfgmaker line 657
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifDescr scanning because public@10.14.2.146: does not seem to s                                             upport it
--snpo: Skipping ipAdEntIfIndex scanning because public@10.14.2.146: does not se                                             em to support it
--snpo: Skipping ifName scanning because public@10.14.2.146: does not seem to su                                             pport it
--snpo: Skipping ifType scanning because public@10.14.2.146: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@10.14.2.146: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494316
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on public@10.14.2.146:
 at /usr/bin/cfgmaker line 107
--base: Walking ifType
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494317
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on public@10.14.2.146:
 at /usr/bin/cfgmaker line 107
--base: Walking ifSpeed
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494318
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on public@10.14.2.146:
 at /usr/bin/cfgmaker line 107
--base: Walking ifAdminStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494319
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on public@10.14.2.146:
 at /usr/bin/cfgmaker line 107
--base: Walking ifOperStatus
SNMP Error:
no response received
SNMPv1_Session (remote host: "10.14.2.146" [10.14.2.146].161)
                  community: "public"
                 request ID: 410494320
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on public@10.14.2.146:
 at /usr/bin/cfgmaker line 107
--base: Writing var/www/mrtg/mrtg.cfg
ERROR: creating var/www/mrtg/mrtg.cfg: No such file or directory
You have new mail in /var/spool/mail/root
[root@isd mrtg]#
I skipped and carried out further steps but was stuck with this :
[root@isd mrtg]# indexmaker --output=/var/www/html/mrtg/index.html --Title=NetTraffic /var/www/mrtg/mrtg.cfg
Possible precedence problem on bitwise | operator at /usr/bin/../lib/mrtg2/BER.pm line 601.
Can't locate package $VERSION for @MRTG_lib::ISA at /usr/bin/indexmaker line 49
main::BEGIN() called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
eval {...} called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
You have new mail in /var/spool/mail/root
[root@isd mrtg]#
[/code]

What indexmaker all about??/
Whats this error is all about???

Pls Help.

Last edited by ajeetraina; 06-03-2008 at 08:16 AM.
 
Old 06-03-2008, 08:21 AM   #2
RC-0529
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
could it not be something to do with the fact that you have set WorkDir: /var/www/html/mrtg
or the install is trying to find mrtg.cfg in "var/www/mrtg/mrtg.cfg" and it may be located in "/etc/mrtg" ????
 
Old 06-03-2008, 08:24 AM   #3
RC-0529
LQ Newbie
 
Registered: Apr 2008
Posts: 6

Rep: Reputation: 0
or --output=var/www/mrtg/mrtg.cfg and should be "/etc/mrtg/mrtg.cfg"
 
Old 06-03-2008, 08:58 AM   #4
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
I switched onto this doc:http://www.linuxhomenetworking.com/w...er_Performance

I carried out line by line.
Code:
[root@isd ~]# cd /etc/snmp/
[root@isd snmp]# ls
snmpd.conf
[root@isd snmp]# mv snmpd.conf snmpd.conf.old
[root@isd snmp]# vi snmpd.conf
Edited :
[start]
rocummunity  craz33guy
[end]
You have new mail in /var/spool/mail/root
[root@isd snmp]# chkconfig snmpd on
[root@isd snmp]# service snmpd restart
Shutting down snmpd:                                       [  OK  ]
Starting snmpd:                                            [  OK  ]
[root@isd snmp]# snmpwalk -v 1 -c craz33guy localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux isd.logicacmg.com 2.6.9-42.ELsmp #1 SMP W                                             ed Jul 12 23:27:17 EDT 2006 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1873) 0:00:18.73
SNMPv2-MIB::sysContact.0 = STRING: Unknown
SNMPv2-MIB::sysName.0 = STRING: isd.logicacmg.com
SNMPv2-MIB::sysLocation.0 = STRING: Unknown
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects fo                                             r network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementatio                                             ns
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP imple                                             mentations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementatio                                             ns
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatchin                                             g.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for th                                             e SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00
[root@isd snmp]# snmpwalk -v 1 -c craz33guy localhost interface
IF-MIB::ifNumber.0 = INTEGER: 3
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: sit0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: tunnel(131)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1480
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 100000000
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:19:bb:46:78:81
IF-MIB::ifPhysAddress.3 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifInOctets.1 = Counter32: 18638336
IF-MIB::ifInOctets.2 = Counter32: 7782844
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 67966
IF-MIB::ifInUcastPkts.2 = Counter32: 57970
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 18640181
IF-MIB::ifOutOctets.2 = Counter32: 2448256
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 67990
IF-MIB::ifOutUcastPkts.2 = Counter32: 25926
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
[root@isd snmp]#
But Anyway Stuck off with :

Code:
[root@isd ~]# indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg
Possible precedence problem on bitwise | operator at /usr/bin/../lib/mrtg2/BER.pm line 601.
Can't locate package $VERSION for @MRTG_lib::ISA at /usr/bin/indexmaker line 49
        main::BEGIN() called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
        eval {...} called at /usr/bin/../lib/mrtg2/MRTG_lib.pm line 49
You have new mail in /var/spool/mail/root
 
Old 06-03-2008, 09:02 AM   #5
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
Is it talking something about the version???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mrtg deepak rawat Linux - Networking 2 03-14-2007 07:22 PM
Mrtg shipon_97 Linux - Networking 0 02-28-2006 10:29 AM
rrd mrtg & mrtg-rrd.cgi ducati620 Linux - Newbie 0 06-03-2004 07:29 PM
help with mrtg adm1329 Linux - Networking 2 04-21-2004 10:17 AM
Mrtg jcb_dreamvsat Linux - Software 3 07-27-2003 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration