LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-07-2008, 05:06 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
snmptrap return error: No community name


I have two RHEL AS4 Update4 + LifeKeeper to implement HA.
And two RHEL4 are vmware OS.

I followed the following site to enable lifekeeper snmptrap.

http://licensing.steeleye.com/Linux_...nmp_config.htm


I edit the /etc/snmp/snmpd.conf as follows:

com2sec local 192.168.11.0/24 public
group localgroup v2c local
view view_all included .1
access localgroup "" any noauth exact view_all none none

I tried to add the "defCommunity private" and restart snmpd service but /var/log/messages shows that unknow token DefCommunity then I think
net-snmp 5.1.2 on my RHEL4 box does not support defCommunity directive.
Accoding the page above, I think snmp for lifekeeper envent should be
sent with public community name. I enabled lifekeeper snmp as follows.


# lk_configsnmp 192.168.11.4 ==> SNMP manager IP with RHEL4 installed on my lab.

Then, I manually failover the lifekeeper HA resource and use lk_log to see
lifekeeper SNMP log. Then, I found the following error.

*** Error: snmptrap returned for Trap 120: No community name specified"

About the snmptrap code for lifekeeper, pls refer the following page.
http://licensing.steeleye.com/Linux_...r_logfiles.htm

I tried to use snmptrap to send the trap to my snmp manager. It works fine.

# snmptrap -v2c -c public 192.168.11.4 uptime .1.3.6.1.4.1.7359.1.0.120

I ran snmptrapd -f -Le on 192.168.11.4 and recieved the following snmptrap after running the command above.

SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprise.7359.1.0.120

Any idea about the snmp no community name specified problem?
 
  


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
Snmptrap Receipient talat Linux - Software 5 01-13-2009 09:08 AM
snmp.conf and snmptrap in Suse 10.1 newbie_adm Linux - Networking 0 07-11-2007 02:03 AM
Trouble getting snmptrap to work Ratclaws Linux - Software 0 05-15-2006 03:02 PM
snmptrap ? blackzone Linux - Networking 0 10-05-2004 02:01 AM
snmptrap utility pieza Linux - Networking 1 11-23-2003 01:16 PM


All times are GMT -5. The time now is 08:18 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