Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MRTG/SNMP difficulty help please! 2.6.9-gentoo-r6transplant
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
binaural
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2004
Posts: 138

PostPosted: Wed Dec 22, 2004 5:13 pm    Post subject: MRTG/SNMP difficulty help please! 2.6.9-gentoo-r6transplant Reply with quote

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
View user's profile Send private message
Ox-
Guru
Guru


Joined: 19 Jun 2003
Posts: 305

PostPosted: Thu Dec 23, 2004 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue Jan 04, 2005 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum