corosync-notifyd.8 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 genterate 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 address.
  59. .TP
  60. .B -d
  61. Send DBUS signals on all events.
  62. .TP
  63. .B -h
  64. Print this help
  65. .SH EXAMPLES
  66. .br
  67. $ corosync-notifyd -o
  68. .br
  69. corosync-notifyd[18505]: troll[23374016] corosync-notify:18505:12 is now connected to corosync
  70. .br
  71. corosync-notifyd[18505]: troll[23374016] corosync-notify:18505:13 is now disconnected from corosync
  72. .br
  73. corosync-notifyd[18505]: troll[23374016] is now quorate
  74. .br
  75. corosync-notifyd[18505]: r2[1550100672] ip:192.168.100.92 joined
  76. .br
  77. corosync-notifyd[18505]: r2[1550100672] ip:192.168.100.92 left
  78. .br
  79. .br
  80. $ corosync-notifyd -o
  81. .br
  82. Note this output below is from "dbus-monitor --system"
  83. .br
  84. signal sender=:1.216 -> dest=(null destination) serial=2 path=/com/redhat/cluster/corosync;
  85. interface=com.redhat.cluster.corosync; member=ConnectionStateChange
  86. .br
  87. string "troll"
  88. .br
  89. uint32 23374016
  90. .br
  91. string "corosync-notify:18900:12"
  92. .br
  93. string "connected"
  94. .br
  95. signal sender=:1.216 -> dest=(null destination) serial=3 path=/com/redhat/cluster/corosync;
  96. interface=com.redhat.cluster.corosync; member=ConnectionStateChange
  97. .br
  98. string "troll"
  99. .br
  100. uint32 23374016
  101. .br
  102. string "corosync-notify:18900:13"
  103. .br
  104. string "disconnected"
  105. .br
  106. signal sender=:1.216 -> dest=(null destination) serial=4 path=/com/redhat/cluster/corosync;
  107. interface=com.redhat.cluster.corosync; member=QorumStateChange
  108. .br
  109. string "troll"
  110. .br
  111. uint32 23374016
  112. .br
  113. string "quorate"
  114. .br
  115. signal sender=:1.216 -> dest=(null destination) serial=5 path=/com/redhat/cluster/corosync;
  116. interface=com.redhat.cluster.corosync; member=NodeStateChange
  117. .br
  118. string "r2"
  119. .br
  120. uint32 1550100672
  121. .br
  122. string "192.168.100.92"
  123. .br
  124. string "joined"
  125. .br
  126. signal sender=:1.216 -> dest=(null destination) serial=6 path=/com/redhat/cluster/corosync;
  127. interface=com.redhat.cluster.corosync; member=NodeStateChange
  128. .br
  129. string "r2"
  130. .br
  131. uint32 1550100672
  132. .br
  133. string "192.168.100.92"
  134. .br
  135. string "left"
  136. .SH SEE ALSO
  137. .BR corosync (8),
  138. .BR corosync-objctl (8),
  139. .BR dbus-monitor (1),
  140. .SH AUTHOR
  141. Angus Salkeld
  142. .PP