LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2012, 10:22 PM   #1
lhan17
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
How do I enable snmp in centos?


Hi, I have a centos server that I want to monitor with solarwinds. Now, my solarwinds guy told me to enter the community string, let's say "abcdefg" in the centos box. I have two questions.

1. How do I check if snmp is installed/running on centos?
2. In the case that snmp is already installed, how do I enter the community string?

Thanks
 
Old 05-17-2012, 11:21 PM   #2
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
You will want to do the following as root:

Code:
yum install net-snmp
Then you will want to edit /etc/snmp/snmpd.conf to configure the service.

Then you will need to:

Code:
chkconfig snmpd on
So the service will start on boot.

And lastly:

Code:
service snmpd start

Last edited by grim76; 05-17-2012 at 11:21 PM. Reason: Formatting
 
1 members found this post helpful.
Old 05-17-2012, 11:33 PM   #3
hermy7
LQ Newbie
 
Registered: Dec 2011
Location: Syd
Distribution: Centos, Red hat
Posts: 25

Rep: Reputation: Disabled
1. How do I check if snmp is installed/running on centos?

# ps ax | grep snmpd
3924 ? Sl 0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
when it show as the following it's mean your snmp running

2. In the case that snmp is already installed, how do I enter the community string?

you can edit the community string on /etc/snmp/snmpd.conf

The community string is located on top and by default it use public as community string but you can edit

# sec.name source community
com2sec notConfigUser default public
 
1 members found this post helpful.
Old 05-18-2012, 12:16 AM   #4
lhan17
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks guys. Got it all sorted now. Thanks for the help
 
Old 05-18-2012, 10:37 AM   #5
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
If these suggestions solved your question make sure to mark the thread solved.
 
Old 05-20-2012, 01:53 AM   #6
lhan17
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
@grim76 - Thanks for letting me know
 
  


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
can't enable snmp bluethundr Solaris / OpenSolaris 1 04-17-2012 05:22 PM
Enable SNMP jagadeshram Linux - Server 3 09-30-2010 02:58 AM
Enable SNMP mech123 Linux - Networking 5 01-13-2009 11:49 PM
SNMP enable Suse 9 fillthy Linux - Networking 0 05-09-2006 05:01 PM
HowTo enable snmp andespoint Linux - Networking 0 05-02-2004 07:28 PM


All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration