[mrtg] Re: Nw5 CPU OID
Paul C. Williamson
pwilliamson at mandtbank.com
Wed Jul 11 14:20:23 MEST 2001
For linux, snmpget should come with the distribution. For NT, get GETIF, it's a really useful little utility, and I think snmp4tpc has it for download. IF you can get that, try to walk the entire system, and you'll be able to easily figure out the problem. Otherwise, try an snmpwalk and pipe the output to a file, the open it up and look through it for the description of something like cpu or processor. It's there, you just need to find it.
I would guess if you don't have snmpwalk (which you should), you might be able to do something like:
snmputil walk host public .1.3.6.1.2.1 > temp.txt
Paul
>>> "Gerhard van Niekerk" <Gerhard at TechPTA.AC.ZA> 07/11/01 08:12AM >>>
Hi,
Here is the error I get in MRTG
root at host cfg]# SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.25.3.3.1.2.1)
SNMPv1_Session (remote host: "host" [*.*.*.*].161)
community: "public"
request ID: 2128128779
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 450
SNMPGET Problem for 1.3.6.1.2.1.25.3.3.1.2.1 1.3.6.1.2.1.25.3.3.1.2.1 sysUptime sysName on public@
Host
at /usr/local/mrtg-2/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
.Haven't got snmpget but use snmputil the error I get there is C:\>snmputil get host public .1.3.6.1.2.1.25.3.3.1.2.1
Error: errorStatus=2, errorIndex=1
on something like the server name I get the following results.
C:\>snmputil get host public .1.3.6.1.2.1.1.5.0
Variable = system.sysName.0
Value = String host
Any Ideas
Where can I get hold of snmpget for linux or NT?
Thanks for the help
Gerhard
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list