[SNMP-MRTG] op Fedora core 2

Pagina: 1
Acties:
  • 129 views sinds 30-01-2008
  • Reageer

  • gert_jan
  • Registratie: Januari 2005
  • Laatst online: 14-02 09:41
ik wou graag mrtg instaleren op mijn server thuis..

maar die moet connecten naar snmp

alleen bij het connecten gaat het fout.

de huidig config file staat op www.g00gle.nl/snmp.txt

en mijn config file voor mrtg is:
code:
1
2
3
4
5
WorkDir: /home/visje/public_html/mrtg
Target[r1]: 2:public@127.0.0.1
MaxBytes[r1]: 1250000
Title[r1]: Traffic Analysis
PageTop[r1]: <H1>Stats for our Ethernet</H1>

  • AtleX
  • Registratie: Maart 2003
  • Niet online

AtleX

Tyrannosaurus Lex 🦖

Wat gaat er fout dan?

Mijn snmp.conf bevat trouwens niet meer dan:
code:
1
2
3
rocommunity public

trapcommunity hades


Kan je wel snmpwalken?

[ Voor 82% gewijzigd door AtleX op 18-01-2005 15:35 ]

Sole survivor of the Chicxulub asteroid impact.


  • gert_jan
  • Registratie: Januari 2005
  • Laatst online: 14-02 09:41
[root@linux snmp]# snmpwalk
-bash: snmpwalk: command not found


hmmm moet ik even instaleren denk ik..
---------------------------------------------------------------

heb hem nu geinstaleerd.....
na het starten van mrtg krijg ik nu:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[root@home snmp]# LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.2.1.2.2.1.16.2)
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
                  community: "public"
                 request ID: 51333996
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/bin//../lib/mrtg2/SNMP_util.pm line 486
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public@127.0.0.1::::::v4only
 at /usr/bin/mrtg line 1798
ERROR: Target[r1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[r1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
WARNING: Skipping Update of r1, inlast is not defined
WARNING: Skipping Update of r1, outlast is not defined

[ Voor 95% gewijzigd door gert_jan op 18-01-2005 16:32 ]


  • Oezie Woezie
  • Registratie: December 1999
  • Niet online

Oezie Woezie

Pim. is de beste

snmpd draait wel?

een mooi Tshirt met Pim. is de beste enzo


  • gert_jan
  • Registratie: Januari 2005
  • Laatst online: 14-02 09:41
ja want ik kan wel snmpwalk doen.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[root@home snmp]# snmpwalk -v 2c -c public 127.0.0.1
SNMPv2-MIB::sysDescr.0 = STRING: Linux home.g00gle.nl 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (373402) 1:02:14.02
SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
SNMPv2-MIB::sysName.0 = STRING: home.g00gle.nl
SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (9) 0:00:00.09
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 for 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 implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
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 Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (9) 0:00:00.09
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (9) 0:00:00.09
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (24859275) 2 days, 21:03:12.75
HOST-RESOURCES-MIB::hrSystemUptime.0 = No more variables left in this MIB View (It is past the end of the MIB tree)



---------------------------------
edited
---------------------------------

heb nu de config file zo als die hier boven staat gebruikt

nu krijg ik de volgende error

[root@home snmp]# LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Rateup WARNING: /usr/bin//rateup could not read the primary log file for r1
Rateup WARNING: /usr/bin//rateup The backup log file for r1 was invalid as well
Rateup WARNING: /usr/bin//rateup Can't remove r1.old updating log file
Rateup WARNING: /usr/bin//rateup Can't rename r1.log to r1.old updating log file

[ Voor 10% gewijzigd door gert_jan op 18-01-2005 18:07 ]