~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to INSTALL

  • Committer: Bazaar Package Importer
  • Author(s): Martin Loschwitz
  • Date: 2011-10-19 14:32:18 UTC
  • mfrom: (1.1.6 upstream) (5.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20111019143218-ew8phl0raqyog844
Tags: 1.4.2-1
* Changed my email address in debian/control
* Add corosync-blackbox to the corosync package
* Imported Upstream version 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
Hopefully pkgconfig support is added in your distribution's version of
124
124
libibverbs and librdmacm soon if you run into this problem.
125
125
 
 
126
-----------------------------------------
 
127
* Building with SNMP/DBUS support *
 
128
-----------------------------------------
 
129
 
 
130
You can get SNMP traps on the following corosync events:
 
131
1) node joine/leave
 
132
2) application connect/dissconnect from corosync
 
133
3) quorum gain/lost
 
134
 
 
135
There are 2 modes of achieving this DBUS + foghorn and snmp-agentx.
 
136
 
 
137
Setting up to get dbus events.
 
138
------------------------------
 
139
foghorn (http://git.fedorahosted.org/git/foghorn.git) converts
 
140
dbus signals into snmp traps. So install foghorn.
 
141
 
 
142
$ ./configure --enable-dbus
 
143
$ make && sudo make install
 
144
$ /etc/init.d/corosync start
 
145
$ echo "OPTIONS=\"-d\"" > /etc/sysconfig/corosync-notifyd
 
146
$ /etc/init.d/corosync-notifyd start
 
147
Start foghorn
 
148
 
 
149
to see the dbus signals getting sent try:
 
150
$ dbus-monitor --system
 
151
 
 
152
Setting up snmp-agentx.
 
153
-----------------------
 
154
If you don't want to use dbus then you can use snmp-agentx.
 
155
 
 
156
$ ./configure --enable-snmp
 
157
$ make && sudo make install
 
158
$ /etc/init.d/corosync start
 
159
$ vim /etc/snmp/snmptrapd.conf
 
160
 
 
161
Add the following:
 
162
authCommunity   log,execute,net public
 
163
$ /etc/init.d/snmptrapd start
 
164
$ echo "OPTIONS=\"-s\"" > /etc/sysconfig/corosync-notifyd
 
165
$ /etc/init.d/corosync-notifyd start
 
166
 
 
167
I start up wireshark to see if there are any snmp traps been sent
 
168
as I am too lazy to setup a manager to receive traps.
 
169
 
 
170
run a program that talks to corosync e.g.
 
171
$ corosync-objctl
 
172
 
 
173
And you should get traps
 
174
 
 
175
 
126
176
------------------------
127
177
* Configuring Corosync *
128
178
------------------------