View previous topic :: View next topic |
Author |
Message |
binaural Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/137500386649b008683d434.jpg)
Joined: 02 Dec 2004 Posts: 138
|
Posted: Wed Dec 22, 2004 5:13 pm Post subject: MRTG/SNMP difficulty help please! 2.6.9-gentoo-r6transplant |
|
|
I'm trying to use SNMPv3 and MRTG as outlined in http://gentoo-wiki.com/HOWTO_SNMP_and_MRTG_Made_Easy
but MRTG is being a BITCH and won't work!
I know that SNMP is working:
Code: | root@transplant cron.mrtg # snmpwalk -v 3 -u root -l authNoPriv -a MD5 -A $MyPw -c public localhost system
SNMPv2-MIB::sysDescr.0 = STRING: Linux transplant 2.6.9-gentoo-r6transplant #5 SMP Wed Dec 1 07:54:49 CST 2004 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
SNMPv2-MIB::sysUpTime.0 = Timeticks: (23221) 0:03:52.21
(truncated)
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00
|
However, MRTG won't read from it. WTF? This is my error:
Code: |
root@transplant cron.mrtg # ./mem.sh
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: 965775774
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib/mrtg2/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.4.1.2021.4.11.0 .1.3.6.1.4.1.2021.4.11.0 sysUptime sysName on public@localhost::::::v4only
at /usr/bin/mrtg line 1846
|
I am now wondering if MRTG even works with SNMPv3. It doesn't seem to.
I have been working on this for two weeks; searched Internet and forums this is my last hope! TYIA please help!
Noah |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Ox- Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/1826701583f59519636004.gif)
Joined: 19 Jun 2003 Posts: 305
|
Posted: Thu Dec 23, 2004 6:41 am Post subject: |
|
|
I can't help with MRTG configuration, but I can see from your output samples where the problem is.
In your snmpwalk command, you are using an snmp protocol version 3 (the -v 3 command line switch) and MRTG is using protocol version 1.
So, you either need to fix your snmpd.conf to add a "public" community to v1 requests (not recommended if you want security) or fix MRTG to issue v2 or v3 requests.
In other words, make sure the community and other authorization parameters (like -a MD5 -A $MyPW) match in the two configs for the same protocol versions.
Edit: oops I saw at the end of your post you realize it was an SNMPv3 problem. I don't know if MRTG can use v3, but I'd be surprised if it didn't handle v2. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nielchiano Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Tue Jan 04, 2005 11:06 am Post subject: |
|
|
Do you realy want to use MRTG? or do you just want to have nice graphs?
Cause if it's the last one, you can try RRDTOOL. It's the successor of MRTG, and allows you TOTAL flexibility...
You can use whatever method you want to input data; use as much data as you want on graphs (plot 5 data-sources on 1 graph is no problem)
Take a look at http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/gallery/ for some teasers. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|