LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-09-2014, 02:25 AM   #1
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Rep: Reputation: 4
SNMP configuration in RHEV


I have an RHEV 6 hypervisor...

Below is my snmpd.conf file SNMP v3 file

master agentx
dontLogTCPWrappersConnects yes
rwuser root auth .1
createUser root SHA Password0 AES sharedkey001
#rocommunity rhev
# sec.name source community
#com2sec paranoid default public
rocommunity public 10.4.14.230
trap2sink 10.4.14.230 public 162
iquerySecName root
monitor -u root -r 30 "PowerStatus"
authtrapenable 1
monitor -u disman -t -r 60 -o dskPath -o dskAvail -o dskTotal "dskTable" dskErrorFlag 0 1


I m able to do snmpwalk locally..
snmpwalk -v 3 -u root -l auth -a SHA -A Password0 -x AES -X sharedkey001 172.19.3.168

We need RHEV to send traps to NMS server whenever there is power supply failure....

how to find oid for power supply in RHEV and how to send snmptrap for V3
 
Old 01-10-2014, 08:58 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,657

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Iyyappan View Post
I have an RHEV 6 hypervisor...
Below is my snmpd.conf file SNMP v3 file
Code:
master agentx
dontLogTCPWrappersConnects yes
rwuser root auth .1
createUser root SHA Password0 AES sharedkey001
#rocommunity rhev
# sec.name source community 
#com2sec paranoid default public
rocommunity  public 10.4.14.230
trap2sink 10.4.14.230 public 162
iquerySecName root
monitor -u root -r 30 "PowerStatus" 
authtrapenable  1
monitor -u disman -t -r 60 -o dskPath -o dskAvail -o dskTotal "dskTable" dskErrorFlag 0 1
I m able to do snmpwalk locally.. snmpwalk -v 3 -u root -l auth -a SHA -A Password0 -x AES -X sharedkey001 172.19.3.168

We need RHEV to send traps to NMS server whenever there is power supply failure....how to find oid for power supply in RHEV and how to send snmptrap for V3
As you've been asked before, please put your code into CODE tags. And your question makes very little sense.

You say that you've already installed and configured SNMP, and an successfully do an snmpwalk....then say that you need to configure it to send traps (you already have). Then mention a power-supply OID, but don't bother telling us what kind of hardware you're using (which is obviously enough where you would GET any OID's...from that manufacturer).

Check with whoever made your hardware for whatever SNMP resources they may have. And, as you've been told before...contact Red Hat support for help, since you're using RHEL, and should be PAYING FOR IT
 
Old 01-16-2014, 10:55 PM   #3
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Original Poster
Rep: Reputation: 4
Red Hat updated to use trapsess to send snmp v3 traps.. But trapsess command does not exists in my RHEV.... Post installation of RHEV, I had just enabled snmp.... I have the below packages installed, in internet they say 'trapsess' is automatically available if the net-snmp package is installed, but its not there in RHEV.... To cross check installed snmp packages in RHEL, even in RHEL servers there is no trapsess command...


net-snmp-5.5-44.el6_4.4.x86_64
net-snmp-libs-5.5-44.el6_4.4.x86_64
net-snmp-utils-5.5-44.el6_4.4.x86_64


Requirement is: RHEV should send snmp v3 traps to OpenNMS...... Right now, it sending traps but I receive it as V2 in NMS....
 
Old 01-17-2014, 09:10 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,657

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by Iyyappan View Post
Red Hat updated to use trapsess to send snmp v3 traps.. But trapsess command does not exists in my RHEV.... Post installation of RHEV, I had just enabled snmp.... I have the below packages installed, in internet they say 'trapsess' is automatically available if the net-snmp package is installed, but its not there in RHEV.... To cross check installed snmp packages in RHEL, even in RHEL servers there is no trapsess command...

net-snmp-5.5-44.el6_4.4.x86_64
net-snmp-libs-5.5-44.el6_4.4.x86_64
net-snmp-utils-5.5-44.el6_4.4.x86_64

Requirement is: RHEV should send snmp v3 traps to OpenNMS...... Right now, it sending traps but I receive it as V2 in NMS....
Ok, then your 'requirement' should also include: CONTACTING RED HAT SUPPORT. AGAIN, you need to be PAYING for RHEL/RHEV. Neither are free products, and chances are you don't have that package/program because you're not paying for it, so it didn't get installed from the online repositories. There are several bugfixes mentioned in the Red Hat custom portal, as the pertain to SNMP and trapsess.

And if you read the SNMP documentation from Red Hat, you'd also see you're missing the trapsess engine option in the SNMP configuration.
 
  


Reply



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
RHEV-Manager failing to Install RHEV-Hypervisor Host boninebm Linux - Virtualization and Cloud 3 08-03-2012 03:25 AM
SNMP configuration jdnow09 Linux - Networking 4 10-17-2010 01:21 PM
SNMP Configuration jmmo1981 Linux - Networking 2 02-14-2007 06:02 AM
snmp configuration!!! linux_child001 Linux - Networking 1 07-12-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:51 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
Open Source Consulting | Domain Registration