[mrtg] Re: mrtg and snmp on linux redhat 9
Tim Reimers
tim.reimers at asheville.k12.nc.us
Tue Mar 2 22:20:04 MET 2004
I'm assuming that your SNMP string really __isn't__ 'public'
If not, and it has any strange characters in it, the snmpwalk command's
-c switch will need those 'escaped'
Like so:
If your SNMP string was 'vet$rwt'
then to use snmpwalk you'd have to do
snmpwalk -v 2c -c vet\$rwt hostname OID
Another possibility of a failed snmpwalk is using the wrong version-
try 'snmpwalk -v 1 -c <commstr> <hostname> <OID>'
I've encountered devices that support only SNMP version 1, OR SNMP
version 2c, etc...
One last idea-
Set up SNMP on something like a JetDirect on your same IP subnetwork
(not across a router/WAN/VLAN link)
Just set it to 'public' or something common-
Now try walking that-
[root at acslinux root]# snmpwalk -v 1 -c xxxxxx
itslj4m
SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM
H.07.15,JETDIRECT EX,JD34,EEPROM H.08.49
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1
Tim
Roman wrote:
>
> hi there
> I am really not able to run mrtg under redhat 9.
>
> I have already tried this:
> 1.
> - download newest mrtg (2.10.13) / configure /install / start snmpd
> - cfgmaker could not run because of 'no response received' from SNMP server....
> then I tried to install net-snmp newer version (5.0.9)
> but cfgmaker could not run with it, too.
>
> 2. after this I have returned back to original RH 9 packages of SNMP(5.0.6) and mrtg(2.9.17-13) but result was very similar:
> ---------------------------- start -----------------------------
> /usr/bin/cfgmaker --global 'WorkDir: /www/mrtg/data' --global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg public at fresange
> --base: Get Device Info on public at fresange:
> SNMP Error:
> no response received
> SNMPv1_Session (remote host: "fresange" [127.0.0.1].161)
> community: "public"
> request ID: 1907357759
> 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 public at fresange:
> at /usr/bin/cfgmaker line 657
> --base: Vendor Id:
> --base: Populating confcache
> --snpo: Skipping ifDescr scanning because public at fresange: does not seem to support it
> --snpo: Skipping ipAdEntIfIndex scanning because public at fresange: does not seem to support it
> --snpo: Skipping ifName scanning because public at fresange: does not seem to support it
> --snpo: Skipping ifType scanning because public at fresange: does not seem to support it
> --snpo: Skipping ifPhysAddress scanning because public at fresange: does not seem to support it
> --base: Get Interface Info
> .....
> ------------------------------- end -------------------------
>
> I suppose there is some problem with snmpd - here is the response to snmpwalk:
>
> prompt> /usr/bin/snmpwalk -v 2c -c public fresange
> Timeout: No Response from fresange
>
> but I don't know how to resolve it.
>
> Any suggestions will be welcomed.
>
> Thanks
>
> HRom
> --
> 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
http://www.gordano.com - Messaging for educators.
--
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