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.
126
-----------------------------------------
127
* Building with SNMP/DBUS support *
128
-----------------------------------------
130
You can get SNMP traps on the following corosync events:
132
2) application connect/dissconnect from corosync
135
There are 2 modes of achieving this DBUS + foghorn and snmp-agentx.
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.
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
149
to see the dbus signals getting sent try:
150
$ dbus-monitor --system
152
Setting up snmp-agentx.
153
-----------------------
154
If you don't want to use dbus then you can use snmp-agentx.
156
$ ./configure --enable-snmp
157
$ make && sudo make install
158
$ /etc/init.d/corosync start
159
$ vim /etc/snmp/snmptrapd.conf
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
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.
170
run a program that talks to corosync e.g.
173
And you should get traps
126
176
------------------------
127
177
* Configuring Corosync *
128
178
------------------------