LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-06-2004, 05:42 AM   #1
sixth_sense
Member
 
Registered: Mar 2004
Distribution: RedHat
Posts: 99

Rep: Reputation: 15
Question how to enable snmp on redhat box


1. How to enable snmp on linux redhat 6.2 ? so i can take mrtg snap ? I am getting following error while trying to make mrtg.cfg file from my linux box's (NAT) nic card to monitor bandwidth utilization.


--base: Get Device Info on public@x.x.x.x:
SNMP Error:
receiving response PDU: Unknown error
SNMPv1_Session (remote host: "x.x.x.x" [x.x.x.x].x)
community: "public"
request ID: 260054921
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at C:/mrtg-2.10.13/bin\..\lib\mrtg2/SNMP_util.pm line 622
SNMPWALK Problem for 1.3.6.1.2.1.1 on public@x.x.x.x::::::v4only
at cfgmaker line 825
WARNING: Skipping public@x.x.x.x: as no info could be retrieved

--base: Writing mrtg.cfg


seems like snmp is not configured on the box..how to get it and start running on the server?
 
Old 06-06-2004, 10:47 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
hope you have snmpd installed and running, Check with

#netstat -l

whether ports 161 is open.

If it is down,

#chkconfig --level 2345 snmpd on //will start snmp services every time your machine boots.
#service snmpd start

Last edited by ppuru; 06-06-2004 at 10:49 PM.
 
Old 06-07-2004, 02:55 AM   #3
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
Hi,

I had exactly the same problem setting up snmp on RH9 with a view to get MRTG working. MRTG is now working well, and it was worth the hassle... It was a while ago and I cannot remember of the top of my head exactly how I fixed it.

From what I remember...

You need to play around with the /etc/snmp/snmpd.conf file a fair bit to get it working, as the conf file (at least to me) does not seem to intuitive.

Here is the top part of my /etc/snmp/snmpd.conf

com2sec notConfigUser default public

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1

com2sec mynetwork 192.168.0.0/24 mycommunity

group MyRWGroup v2c local
group MyROGroup v2c mynetwork

group MyRWGroup v2c otherv3user

view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc

access MyROGroup "" any noauth 0 all none none
access MyRWGroup "" any noauth prefix all all all

com2sec notConfigUser default public

com2sec notConfigUser default public

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser


These top setting were the ones I played with most.

Dont foget to use snmpwalk when you are trying to get it working, again from what I remeber it gives you good debugging info

also dont forget to try public@localhost, public@192.168.0.1 (or whatever) public@your.IP.add.ress

Hope this gives you some clues....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable ICS on XP from LINUX box. agronom Linux - Networking 2 09-12-2005 09:57 PM
HowTo enable snmp andespoint Linux - Networking 0 05-02-2004 06:28 PM
Can anybody help me about snmp get on the Redhat Linux,Thanks. ramon_ok Linux - Networking 0 04-12-2004 10:59 PM
how to enable acpi in suse 9 using Klaptop dialog box biotek1 Linux - Software 2 01-25-2004 11:56 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM


All times are GMT -5. The time now is 01:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration