/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
MRTG og SNMPD
Fra : Lars Knudsen


Dato : 16-11-01 22:38

Hejsa.

Jeg har installeret osv.. snmpd og mrtg.

snmpd svarer fint på en snmpwalk men mrtg brokker sig vildt..


f.eks

[root@uj /etc]# /pack/mrtg/bin/cfgmaker --ifdesc ip --noreversedns --global
'WorkDir: /var/www/mrtg/' --global 'Options[_]:
growright,bits,perminute,transparent' --global 'Background[^]:
#CC6600' --global 'WithPeak[_]: ymwd' pwd-ting@localhost
pwd-ting@193.88.99.113 > /etc/mrtg.cfg
--base: Get Device Info on pwd-ting@localhost:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because pwd-ting@localhost: does not seem
to support it
--snpo: Skipping ifDescr scanning because pwd-ting@localhost: does not seem
to support it
--snpo: Skipping ipAdEntIfIndex scanning because pwd-ting@localhost: does
not seem to support it
--snpo: Skipping ifType scanning because pwd-ting@localhost: does not seem
to support it
--snpo: Skipping ifPhysAddress scanning because pwd-ting@localhost: does not
seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "pwd-ting"
request ID: 690105786
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /pack/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "pwd-ting"
request ID: 690105786
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /pack/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 540

[root@uj /etc]# snmpwalk pwd-ting localhost
bash: snmpwalk: command not found
[root@uj /etc]# locate snmpwalk
/mnt/old/usr/share/man/man1/snmpwalk.1.gz
/mnt/old/usr/bin/snmpwalk
/usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.c
/usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.o
/usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.lo
/usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk
/usr/src/pakket-tar/ucd-snmp-4.2.2/man/snmpwalk.1
/usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk
/usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk/.cvsignore
/usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk/snmpwalk.dsp
/pack/snmp/bin/snmpwalk
/pack/snmp/man/man1/snmpwalk.1
[root@uj /etc]# /pack/snmp/bin/snmpwalk localhost pwd-ting
system.sysDescr.0 = Linux uj.dulmens.dk 2.4.9 #6 Thu Nov 8 00:57:19 CET 2001
i586
system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
system.sysUpTime.0 = Timeticks: (26049486) 3 days, 0:21:34.86
system.sysContact.0 = Root <root@localhost> (configure
/etc/snmp/snmp.local.conf)
system.sysName.0 = uj.dulmens.dk
system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
system.sysORTable.sysOREntry.sysORID.2 = OID:
..iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
system.sysORTable.sysOREntry.sysORID.4 = OID: ip
system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
system.sysORTable.sysOREntry.sysORID.6 = OID:
..iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacm
MIBGroups.vacmBasicGroup
system.sysORTable.sysOREntry.sysORID.7 = OID:
..iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBCo
nformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
system.sysORTable.sysOREntry.sysORID.8 = OID:
..iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.sn
mpMPDMIBCompliances.snmpMPDCompliance
system.sysORTable.sysOREntry.sysORID.9 = OID:
..iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIB
Compliances.usmMIBCompliance
system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe
generic objects for network interface sub-layers
system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2
entities
system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing TCP
implementations
system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP
and ICMP implementations
system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing UDP
implementations
system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control Model
for SNMP.
system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management Architecture
MIB.
system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing
and Dispatching.
system.sysORTable.sysOREntry.sysORDescr.9 = The management information
definitions for the SNMP User-based Security Model.
system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00

[root@uj /etc]#

--
+--------------------------------------------------+
|Lars Knudsen | 51 27 01 09 | ICQ 3770699
| gud@dulmens.dk | www.dulmens.dk|
| This message has been sent on 100% recycled electrons
+--------------------------------------------------+



 
 
Lars Knudsen (18-11-2001)
Kommentar
Fra : Lars Knudsen


Dato : 18-11-01 09:28

Fandt ud af det..

i snmpd.conf skal man ikke bare åbne for alm adgang..

-- Lars
"Lars Knudsen" <lars@dulmens.dk> wrote in message
news:3bf58751$0$232$edfadb0f@dspool01.news.tele.dk...
> Hejsa.
>
> Jeg har installeret osv.. snmpd og mrtg.
>
> snmpd svarer fint på en snmpwalk men mrtg brokker sig vildt..
>
>
> f.eks
>
> [root@uj /etc]# /pack/mrtg/bin/cfgmaker --ifdesc
ip --noreversedns --global
> 'WorkDir: /var/www/mrtg/' --global 'Options[_]:
> growright,bits,perminute,transparent' --global 'Background[^]:
> #CC6600' --global 'WithPeak[_]: ymwd' pwd-ting@localhost
> pwd-ting@193.88.99.113 > /etc/mrtg.cfg
> --base: Get Device Info on pwd-ting@localhost:
> --base: Vendor Id:
> --base: Populating confcache
> --snpo: Skipping ifName scanning because pwd-ting@localhost: does not seem
> to support it
> --snpo: Skipping ifDescr scanning because pwd-ting@localhost: does not
seem
> to support it
> --snpo: Skipping ipAdEntIfIndex scanning because pwd-ting@localhost: does
> not seem to support it
> --snpo: Skipping ifType scanning because pwd-ting@localhost: does not seem
> to support it
> --snpo: Skipping ifPhysAddress scanning because pwd-ting@localhost: does
not
> seem to support it
> --base: Get Interface Info
> --base: Walking ifIndex
> SNMP Error:
> Received SNMP response with error code
> error status: noSuchName
> index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> community: "pwd-ting"
> request ID: 690105786
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /pack/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 540
> SNMP Error:
> Received SNMP response with error code
> error status: noSuchName
> index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
> SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
> community: "pwd-ting"
> request ID: 690105786
> PDU bufsize: 8000 bytes
> timeout: 2s
> retries: 5
> backoff: 1)
> at /pack/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 540
>
> [root@uj /etc]# snmpwalk pwd-ting localhost
> bash: snmpwalk: command not found
> [root@uj /etc]# locate snmpwalk
> /mnt/old/usr/share/man/man1/snmpwalk.1.gz
> /mnt/old/usr/bin/snmpwalk
> /usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.c
> /usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.o
> /usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk.lo
> /usr/src/pakket-tar/ucd-snmp-4.2.2/apps/snmpwalk
> /usr/src/pakket-tar/ucd-snmp-4.2.2/man/snmpwalk.1
> /usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk
> /usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk/.cvsignore
> /usr/src/pakket-tar/ucd-snmp-4.2.2/win32/snmpwalk/snmpwalk.dsp
> /pack/snmp/bin/snmpwalk
> /pack/snmp/man/man1/snmpwalk.1
> [root@uj /etc]# /pack/snmp/bin/snmpwalk localhost pwd-ting
> system.sysDescr.0 = Linux uj.dulmens.dk 2.4.9 #6 Thu Nov 8 00:57:19 CET
2001
> i586
> system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux
> system.sysUpTime.0 = Timeticks: (26049486) 3 days, 0:21:34.86
> system.sysContact.0 = Root <root@localhost> (configure
> /etc/snmp/snmp.local.conf)
> system.sysName.0 = uj.dulmens.dk
> system.sysLocation.0 = Unknown (edit /etc/snmp/snmpd.conf)
> system.sysORLastChange.0 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORID.1 = OID: ifMIB
> system.sysORTable.sysOREntry.sysORID.2 = OID:
> .iso.org.dod.internet.snmpV2.snmpModules.snmpMIB
> system.sysORTable.sysOREntry.sysORID.3 = OID: tcpMIB
> system.sysORTable.sysOREntry.sysORID.4 = OID: ip
> system.sysORTable.sysOREntry.sysORID.5 = OID: udpMIB
> system.sysORTable.sysOREntry.sysORID.6 = OID:
>
..iso.org.dod.internet.snmpV2.snmpModules.snmpVacmMIB.vacmMIBConformance.vacm
> MIBGroups.vacmBasicGroup
> system.sysORTable.sysOREntry.sysORID.7 = OID:
>
..iso.org.dod.internet.snmpV2.snmpModules.snmpFrameworkMIB.snmpFrameworkMIBCo
> nformance.snmpFrameworkMIBCompliances.snmpFrameworkMIBCompliance
> system.sysORTable.sysOREntry.sysORID.8 = OID:
>
..iso.org.dod.internet.snmpV2.snmpModules.snmpMPDMIB.snmpMPDMIBConformance.sn
> mpMPDMIBCompliances.snmpMPDCompliance
> system.sysORTable.sysOREntry.sysORID.9 = OID:
>
..iso.org.dod.internet.snmpV2.snmpModules.snmpUsmMIB.usmMIBConformance.usmMIB
> Compliances.usmMIBCompliance
> system.sysORTable.sysOREntry.sysORDescr.1 = The MIB module to describe
> generic objects for network interface sub-layers
> system.sysORTable.sysOREntry.sysORDescr.2 = The MIB module for SNMPv2
> entities
> system.sysORTable.sysOREntry.sysORDescr.3 = The MIB module for managing
TCP
> implementations
> system.sysORTable.sysOREntry.sysORDescr.4 = The MIB module for managing IP
> and ICMP implementations
> system.sysORTable.sysOREntry.sysORDescr.5 = The MIB module for managing
UDP
> implementations
> system.sysORTable.sysOREntry.sysORDescr.6 = View-based Access Control
Model
> for SNMP.
> system.sysORTable.sysOREntry.sysORDescr.7 = The SNMP Management
Architecture
> MIB.
> system.sysORTable.sysOREntry.sysORDescr.8 = The MIB for Message Processing
> and Dispatching.
> system.sysORTable.sysOREntry.sysORDescr.9 = The management information
> definitions for the SNMP User-based Security Model.
> system.sysORTable.sysOREntry.sysORUpTime.1 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.2 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.3 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.4 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.5 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.6 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.7 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.8 = Timeticks: (0) 0:00:00.00
> system.sysORTable.sysOREntry.sysORUpTime.9 = Timeticks: (0) 0:00:00.00
>
> [root@uj /etc]#
>
> --
> +--------------------------------------------------+
> |Lars Knudsen | 51 27 01 09 | ICQ 3770699
> | gud@dulmens.dk | www.dulmens.dk|
> | This message has been sent on 100% recycled electrons
> +--------------------------------------------------+
>
>



Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408885
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste