COROSYNC-MIB.txt 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. COROSYNC-MIB DEFINITIONS ::= BEGIN
  2. --
  3. -- MIB objects for Corosync
  4. --
  5. IMPORTS
  6. MODULE-IDENTITY,NOTIFICATION-TYPE,
  7. Integer32,enterprises,OBJECT-TYPE,
  8. Counter64 FROM SNMPv2-SMI
  9. MODULE-COMPLIANCE, OBJECT-GROUP,
  10. NOTIFICATION-GROUP FROM SNMPv2-CONF
  11. ;
  12. corosync MODULE-IDENTITY
  13. LAST-UPDATED "201101211300Z"
  14. ORGANIZATION "www.corosync.org"
  15. CONTACT-INFO "name: Yuki Sato
  16. email: users@clusterlabs.org"
  17. DESCRIPTION "Add cluster quorum traps, fix smilint errors, and fix notification block ID"
  18. REVISION "201101211300Z"
  19. DESCRIPTION "MIB objects for Corosync"
  20. REVISION "201003251209Z"
  21. DESCRIPTION "First draft"
  22. REVISION "200911061318Z"
  23. DESCRIPTION
  24. "Private Enterprise Number has been assigned."
  25. ::= { enterprises 35488 }
  26. --
  27. -- top level structure
  28. --
  29. corosyncNotices OBJECT IDENTIFIER ::= { corosync 0 }
  30. corosyncObjects OBJECT IDENTIFIER ::= { corosync 1 }
  31. corosyncConformance OBJECT IDENTIFIER ::= { corosync 200 }
  32. --
  33. -- Corosync MIB entries
  34. --
  35. --
  36. -- Node Information
  37. --
  38. corosyncObjectsNodeName OBJECT-TYPE
  39. SYNTAX OCTET STRING (SIZE(1..64))
  40. MAX-ACCESS accessible-for-notify
  41. STATUS current
  42. DESCRIPTION "Hostname of the cluster node."
  43. ::= { corosyncObjects 1 }
  44. corosyncObjectsNodeID OBJECT-TYPE
  45. SYNTAX Integer32
  46. MAX-ACCESS accessible-for-notify
  47. STATUS current
  48. DESCRIPTION "The unique integer of the node."
  49. ::= { corosyncObjects 2 }
  50. corosyncObjectsNodeStatus OBJECT-TYPE
  51. SYNTAX OCTET STRING
  52. MAX-ACCESS accessible-for-notify
  53. STATUS current
  54. DESCRIPTION
  55. "The status of the node."
  56. ::= { corosyncObjects 3 }
  57. corosyncObjectsNodeAddress OBJECT-TYPE
  58. SYNTAX OCTET STRING
  59. MAX-ACCESS accessible-for-notify
  60. STATUS current
  61. DESCRIPTION "The address of the node."
  62. ::= { corosyncObjects 4 }
  63. --
  64. -- Quorum Information
  65. --
  66. --
  67. -- not currently used, but here for future use
  68. corosyncObjectsRingSeq OBJECT-TYPE
  69. SYNTAX Counter64
  70. MAX-ACCESS accessible-for-notify
  71. STATUS current
  72. DESCRIPTION
  73. "Ring ID Sequence number"
  74. ::= { corosyncObjects 20 }
  75. corosyncObjectsQuorumStatus OBJECT-TYPE
  76. SYNTAX OCTET STRING
  77. MAX-ACCESS accessible-for-notify
  78. STATUS current
  79. DESCRIPTION
  80. "Quorum Status"
  81. ::= { corosyncObjects 21 }
  82. --
  83. -- RRP Information
  84. ---
  85. corosyncObjectsIfaceNo OBJECT-TYPE
  86. SYNTAX Integer32
  87. MAX-ACCESS accessible-for-notify
  88. STATUS current
  89. DESCRIPTION "The integer of interface."
  90. ::= { corosyncObjects 60 }
  91. corosyncObjectsRRPStatus OBJECT-TYPE
  92. SYNTAX OCTET STRING
  93. MAX-ACCESS accessible-for-notify
  94. STATUS current
  95. DESCRIPTION
  96. "RRP Status"
  97. ::= { corosyncObjects 61 }
  98. --
  99. -- Application Information
  100. --
  101. corosyncObjectsAppName OBJECT-TYPE
  102. SYNTAX OCTET STRING
  103. MAX-ACCESS accessible-for-notify
  104. STATUS current
  105. DESCRIPTION
  106. "Application name"
  107. ::= { corosyncObjects 40 }
  108. corosyncObjectsAppStatus OBJECT-TYPE
  109. SYNTAX OCTET STRING
  110. MAX-ACCESS accessible-for-notify
  111. STATUS current
  112. DESCRIPTION
  113. "Application status"
  114. ::= { corosyncObjects 41 }
  115. --
  116. -- Notification Information
  117. --
  118. corosyncNoticesNodeStatus NOTIFICATION-TYPE
  119. OBJECTS { corosyncObjectsNodeName,
  120. corosyncObjectsNodeID,
  121. corosyncObjectsNodeAddress,
  122. corosyncObjectsNodeStatus }
  123. STATUS current
  124. DESCRIPTION
  125. "Produced when a node 'corosyncObjectsNodeName' joins or leaves
  126. the cluster.
  127. The notification includes the node name, nodeid, the node's
  128. IP address and the status (either 'joined' or 'left')."
  129. ::= { corosyncNotices 1 }
  130. corosyncNoticesQuorumStatus NOTIFICATION-TYPE
  131. OBJECTS { corosyncObjectsNodeName,
  132. corosyncObjectsNodeID,
  133. corosyncObjectsQuorumStatus }
  134. STATUS current
  135. DESCRIPTION
  136. "Produced when the quorum state changes.
  137. The notification also includes the node name, nodeid
  138. and the new state (either 'quorate' or 'NOT quorate')."
  139. ::= { corosyncNotices 2 }
  140. corosyncNoticesAppStatus NOTIFICATION-TYPE
  141. OBJECTS { corosyncObjectsNodeName,
  142. corosyncObjectsNodeID,
  143. corosyncObjectsAppName,
  144. corosyncObjectsAppStatus }
  145. STATUS current
  146. DESCRIPTION
  147. "Produced when a client application 'corosyncObjectsAppName' connects or
  148. disconnects from Corosync.
  149. The notification also includes the node name, nodeid, the application
  150. name and the new state (either 'connected' or 'disconnected')."
  151. ::= { corosyncNotices 3 }
  152. corosyncNoticesRRPStatus NOTIFICATION-TYPE
  153. OBJECTS { corosyncObjectsNodeName,
  154. corosyncObjectsNodeID,
  155. corosyncObjectsIfaceNo,
  156. corosyncObjectsRRPStatus }
  157. STATUS current
  158. DESCRIPTION
  159. "Produced when the interface of RRP is marked failed or operational.
  160. The notification also includes the node name, nodeid, iface number
  161. and the new state (either 'failed' or 'operational')."
  162. ::= { corosyncNotices 4 }
  163. --
  164. -- Compliance Information
  165. --
  166. corosyncCompliances OBJECT IDENTIFIER ::= { corosyncConformance 1 }
  167. corosyncConformanceGroups OBJECT IDENTIFIER ::= { corosyncConformance 2 }
  168. corosyncCompliance MODULE-COMPLIANCE
  169. STATUS current
  170. DESCRIPTION "Corosync compliance information"
  171. MODULE -- this module
  172. MANDATORY-GROUPS { corosyncObjectGroup, corosyncNotificationGroup }
  173. ::= { corosyncCompliances 1 }
  174. corosyncObjectGroup OBJECT-GROUP
  175. OBJECTS { corosyncObjectsNodeName,
  176. corosyncObjectsNodeID,
  177. corosyncObjectsNodeStatus,
  178. corosyncObjectsNodeAddress,
  179. corosyncObjectsRingSeq,
  180. corosyncObjectsQuorumStatus,
  181. corosyncObjectsAppName,
  182. corosyncObjectsAppStatus,
  183. corosyncObjectsIfaceNo,
  184. corosyncObjectsRRPStatus
  185. }
  186. STATUS current
  187. DESCRIPTION "Corosync Object Conformance Group"
  188. ::= { corosyncConformanceGroups 1 }
  189. corosyncNotificationGroup NOTIFICATION-GROUP
  190. NOTIFICATIONS { corosyncNoticesNodeStatus,
  191. corosyncNoticesQuorumStatus,
  192. corosyncNoticesAppStatus,
  193. corosyncNoticesRRPStatus
  194. }
  195. STATUS current
  196. DESCRIPTION "Corosync Notification Conformance Group"
  197. ::= { corosyncConformanceGroups 2 }
  198. END