corosync-notifyd.8 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .\"/*
  2. .\" * Copyright (C) 2010 Red Hat, Inc.
  3. .\" *
  4. .\" * All rights reserved.
  5. .\" *
  6. .\" * Author: Angus Salkeld <asalkeld@redhat.com>
  7. .\" *
  8. .\" * This software licensed under BSD license, the text of which follows:
  9. .\" *
  10. .\" * Redistribution and use in source and binary forms, with or without
  11. .\" * modification, are permitted provided that the following conditions are met:
  12. .\" *
  13. .\" * - Redistributions of source code must retain the above copyright notice,
  14. .\" * this list of conditions and the following disclaimer.
  15. .\" * - Redistributions in binary form must reproduce the above copyright notice,
  16. .\" * this list of conditions and the following disclaimer in the documentation
  17. .\" * and/or other materials provided with the distribution.
  18. .\" * - Neither the name of Red Hat, Inc. nor the names of its
  19. .\" * contributors may be used to endorse or promote products derived from this
  20. .\" * software without specific prior written permission.
  21. .\" *
  22. .\" * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  23. .\" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24. .\" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25. .\" * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  26. .\" * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  27. .\" * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  28. .\" * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  29. .\" * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  30. .\" * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  31. .\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  32. .\" * THE POSSIBILITY OF SUCH DAMAGE.
  33. .\" */
  34. .TH COROSYNC-NOTIFYD 8 2011-01-14
  35. .SH NAME
  36. corosync-notifyd \- Listen for important corosync events and send dbus and/or snmp traps.
  37. .SH SYNOPSIS
  38. .B "corosync-notifyd [\-f] [\-l] [\-o] [\-s] [\-m manager] [\-d] [-h]"
  39. .SH DESCRIPTION
  40. .B corosync-notifyd
  41. uses corosync API to listen for important cluster events and can log them,
  42. generate dbus signals or generate snmp traps.
  43. .SH OPTIONS
  44. .TP
  45. .B -f
  46. Start application in foreground.
  47. .TP
  48. .B -l
  49. Log all events.
  50. .TP
  51. .B -o
  52. Print events to stdout (turns on -l).
  53. .TP
  54. .B -s
  55. Send SNMP traps on all events.
  56. .TP
  57. .B -m
  58. Set the SNMP Manager IP address (defaults to localhost).
  59. .TP
  60. .B -n
  61. No reverse DNS lookup on cmap member change events.
  62. .TP
  63. .B -d
  64. Send DBUS signals on all events.
  65. .TP
  66. .B -h
  67. Print this help.
  68. .SH EXAMPLES
  69. .br
  70. $ corosync-notifyd -o
  71. .br
  72. corosync-notifyd[18505]: troll[23374016] corosync-notify:18505:12 is now connected to corosync
  73. .br
  74. corosync-notifyd[18505]: troll[23374016] corosync-notify:18505:13 is now disconnected from corosync
  75. .br
  76. corosync-notifyd[18505]: troll[23374016] is now quorate
  77. .br
  78. corosync-notifyd[18505]: r2[1550100672] ip:192.168.100.92 joined
  79. .br
  80. corosync-notifyd[18505]: r2[1550100672] ip:192.168.100.92 left
  81. .br
  82. .br
  83. $ corosync-notifyd -d
  84. .br
  85. Note this output below is from "dbus-monitor --system"
  86. .br
  87. signal sender=:1.216 -> dest=(null destination) serial=2 path=/com/redhat/cluster/corosync;
  88. interface=com.redhat.cluster.corosync; member=ConnectionStateChange
  89. .br
  90. string "troll"
  91. .br
  92. uint32 23374016
  93. .br
  94. string "corosync-notify:18900:12"
  95. .br
  96. string "connected"
  97. .br
  98. signal sender=:1.216 -> dest=(null destination) serial=3 path=/com/redhat/cluster/corosync;
  99. interface=com.redhat.cluster.corosync; member=ConnectionStateChange
  100. .br
  101. string "troll"
  102. .br
  103. uint32 23374016
  104. .br
  105. string "corosync-notify:18900:13"
  106. .br
  107. string "disconnected"
  108. .br
  109. signal sender=:1.216 -> dest=(null destination) serial=4 path=/com/redhat/cluster/corosync;
  110. interface=com.redhat.cluster.corosync; member=QorumStateChange
  111. .br
  112. string "troll"
  113. .br
  114. uint32 23374016
  115. .br
  116. string "quorate"
  117. .br
  118. signal sender=:1.216 -> dest=(null destination) serial=5 path=/com/redhat/cluster/corosync;
  119. interface=com.redhat.cluster.corosync; member=NodeStateChange
  120. .br
  121. string "r2"
  122. .br
  123. uint32 1550100672
  124. .br
  125. string "192.168.100.92"
  126. .br
  127. string "joined"
  128. .br
  129. signal sender=:1.216 -> dest=(null destination) serial=6 path=/com/redhat/cluster/corosync;
  130. interface=com.redhat.cluster.corosync; member=NodeStateChange
  131. .br
  132. string "r2"
  133. .br
  134. uint32 1550100672
  135. .br
  136. string "192.168.100.92"
  137. .br
  138. string "left"
  139. .SH SEE ALSO
  140. .BR corosync (8),
  141. .BR corosync-cmapctl (8),
  142. .BR dbus-monitor (1),
  143. .SH AUTHOR
  144. Angus Salkeld
  145. .PP