SNMP and MRTG... almost giving up

Urgh ... Following this, I installed SNMP 4.2.3 ... and now (After quite a few hoursss) I am in the point where I am almost giving up ... SNMP has been installed and I can run snmpd fine ... But when I try to use SNMP in my MRTG, I keep getting errors (I think it's snmpget).

When I did /usr/local/mrtg-2/bin/cfgmaker public@localhost > localhost.cfg, I got the following output/errors (some has been taken out to make this shorter):

--base: Get Device Info on public@localhost:
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@localhost: does not seem to support it
--snpo: Skipping ifDescr scanning because public@localhost: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@localhost: does not seem to support it
--snpo: Skipping ifType scanning because public@localhost: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@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: "public"
request ID: 2136928328
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/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: "public"
request ID: 2136928328
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 2136928328
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/local/mrtg-2/bin/../lib/mrtg2/SNMP_util.pm line 540
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on public@localhost:
at /usr/local/mrtg-2/bin/cfgmaker line 107
Well ... this alone should tell me that I will not get things to go right ... but I tried anyway with the following mrtg measurement of system load (in localhost.cfg):

WorkDir: /home/dnspro/public_html/mrtg/system

XSize[_]: 400
YSize[_]: 200

Target[cpusum] SNMP and MRTG... almost giving upsCpuRawUser.0&ssCpuRawUser.0:public@localhost + ssCpuRawSystem.0&ssCpuRawSystem.0:public@localhost + ssCpuRawNice.0&ssCpuRawNice.0:public@localhost
RouterUptime[cpusum]: public@localhost
MaxBytes[cpusum]: 100
Title[cpusum]: CPU LOAD
PageTop[cpusum]: <H1>Active CPU Load %</H1>
Unscaled[cpusum]: ymwd
ShortLegend[cpusum]: %
YLegend[cpusum]: CPU Utilization
Legend1[cpusum]: Active CPU in % (Load)
Legend2[cpusum]:
Legend3[cpusum]:
Legend4[cpusum]:
LegendI[cpusum]: Active
LegendO[cpusum]:
Options[cpusum]: growright,nopercent
OK ... so now running mrtg on this cfg file givess me errors (well, by now ... these are not really suprising ... in fact, it's these are expected SNMP and MRTG... almost giving up )

Unknown SNMP var ssCpuRawUser.0
at /usr/local/mrtg-2/bin/mrtg line 1491
Unknown SNMP var ssCpuRawUser.0
at /usr/local/mrtg-2/bin/mrtg line 1491
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 178093032
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 ssCpuRawUser.0 ssCpuRawUser.0 sysUptime sysName on public@localhost
at /usr/local/mrtg-2/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
Unknown SNMP var ssCpuRawSystem.0
at /usr/local/mrtg-2/bin/mrtg line 1491
Unknown SNMP var ssCpuRawSystem.0
at /usr/local/mrtg-2/bin/mrtg line 1491
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 178093033
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 ssCpuRawSystem.0 ssCpuRawSystem.0 sysUptime sysName on public@localhost
at /usr/local/mrtg-2/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
Unknown SNMP var ssCpuRawNice.0
at /usr/local/mrtg-2/bin/mrtg line 1491
Unknown SNMP var ssCpuRawNice.0
at /usr/local/mrtg-2/bin/mrtg line 1491
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 178093034
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 ssCpuRawNice.0 ssCpuRawNice.0 sysUptime sysName on public@localhost
at /usr/local/mrtg-2/bin/mrtg line 1491
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 178093035
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 sysUptime sysName on public@localhost
at /usr/local/mrtg-2/bin/mrtg line 339

Has anybody been able to configure their MRTG via SNMP? Have I just overlooked anything simple? Any help/advice/info will be greatly appreciated ...

cheers,
SNMP and MRTG... almost giving up

 

 

 

 

Top