Vidol Loeung wrote: > Hi all: > > Further to my previous question, MRTG now seems to work; but i think, > error lies with SNMP server. How can I remedy that? > > Here is the error message: > > #------Start-------- > 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: "203.146.184.138" [203.146.184.138].161) > community: "public" > request ID: 1983719727 > PDU bufsize: 8000 bytes > timeout: 2s > retries: 5 > backoff: 1) > at /usr/bin/../lib/mrtg2/SNMP_util.pm line 450 > SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on > public@xxxxxxxxxxxxxxx at /usr/bin/mrtg line 1491 > WARNING: Expected a number but got '' > WARNING: Expected a number but got '' > > #------End---------- > > Thanks and regards, > Vidol Based on the above output, it looks like your using mrtg's cfgmaker script. As the message states... noSuchName was recieved from the device you queried. If I were in your shoes, I would take a big step backwards and try to get the snmpd configuration working properly before using cfgmaker. Use commands like snmpget and snmpwalk to test your configuration. This is what cfgmaker uses. example: [scowles@voyager snmp]$ snmpwalk -v1 -c community localhost ifInOctets IF-MIB::ifInOctets.1 = Counter32: 479097548 IF-MIB::ifInOctets.2 = Counter32: 1538591064 IF-MIB::ifInOctets.3 = Counter32: 0 [scowles@voyager snmp]$ snmpget -v1 -c community localhost ifInOctets.1 IF-MIB::ifInOctets.1 = Counter32: 479109990 [scowles@voyager snmp]$ snmpwalk -v1 -c community localhost system SNMPv2-MIB::sysDescr.0 = STRING: Linux voyager 2.4.20-20.9 #1 Mon Aug 18 11:28:34 EDT 2003 i586 SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 SNMPv2-MIB::sysUpTime.0 = Timeticks: (114685974) 13 days, 6:34:19.74 SNMPv2-MIB::sysContact.0 = STRING: Steve Cowles (netadmin@xxxxxxxxxxxxxx) SNMPv2-MIB::sysName.0 = STRING: voyager SNMPv2-MIB::sysLocation.0 = STRING: Linux RH-9.0 on AMD-K6/450, 196MB .... [scowles@voyager snmp]$ snmpget -v1 -c community localhost system.sysLocation.0 SNMPv2-MIB::sysLocation.0 = STRING: Linux RH-9.0 on AMD-K6/450, 196MB If the above works, then try cfgmaker... [scowles@voyager snmp]$ cfgmaker community@localhost --base: Get Device Info on community@localhost: --base: Vendor Id: --base: Populating confcache --snpo: confcache byteme@localhost: Descr lo --> 1 --snpo: confcache byteme@localhost: Descr eth0 --> 2 --snpo: confcache byteme@localhost: Descr eth1 --> 3 --snpo: confcache byteme@localhost: Ip 127.0.0.1 --> 1 --snpo: confcache byteme@localhost: Ip 192.168.9.3 --> 2 --snpo: confcache byteme@localhost: Ip 192.168.10.1 --> 3 --snpo: confcache byteme@localhost: Type 24 --> 1 --snpo: confcache byteme@localhost: Type 6 --> 2 --snpo: confcache byteme@localhost: Type 6 --> 3 (duplicate) --snpo: confcache byteme@localhost: Eth --> 1 --snpo: confcache byteme@localhost: Eth 00-60-97-14-71-34 --> 2 --snpo: confcache byteme@localhost: Eth 00-c0-f0-36-28-c8 --> 3 --base: Get Interface Info --base: Walking ifIndex --base: Walking ifType --base: Walking ifSpeed --base: Walking ifAdminStatus --base: Walking ifOperStatus .... For reference, here is the relevant part of my /etc/snmp/snmpd.conf file. Change the community names to your community name. Also, I have edited the sec.model section to "any" so that your system will accept v1 and v2c queries. Once you get this working, you can lock down your system by further limiting version type queries to specific LAN's. ## sec.name source community com2sec local localhost my_RW_community com2sec lan 192.168.9.0/24 my_RO_community ## group.name sec.model sec.name group MyRWGroup any local group MyROGroup any lan # #group MyRWGroup any otherv3user #... ## incl/excl subtree mask view all included .1 80 ## -or just the mib2 tree- #view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc ## context sec.model sec.level prefix read write notif access MyROGroup "" any noauth 0 all none none access MyRWGroup "" any noauth 0 all all all Steve Cowles -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list