4
LINUX-HA-MIB DEFINITIONS ::= BEGIN
7
MODULE-IDENTITY, OBJECT-TYPE, enterprises,
8
Counter32, INTEGER, Integer32, Unsigned32, IpAddress
11
TEXTUAL-CONVENTION, DisplayString,
12
TimeStamp, TruthValue, DateAndTime
15
MODULE-COMPLIANCE, OBJECT-GROUP
18
LinuxHA MODULE-IDENTITY
19
LAST-UPDATED "200711260000Z" -- Nov. 26, 2007
20
ORGANIZATION "High-Availability Linux Project"
23
Postal: Linux-HA Project
25
Broomfield, CO 80020-6163
33
15400 NW Greenbrier Parkway
38
Email: yixiong.zou@intel.com
40
In addition, the Linux-HA mailing list is where all the
41
discussion about this MIB happens. To join the mailing list,
42
send a request message to linux-ha-subscribe@muc.de.
43
The mailing list address is
44
linux-ha-dev@lists.community.tummy.com."
46
"This MIB can be used to manage a Linux-HA cluster. The
47
initial plan is to make the heartbeat, resource managment,
48
and memberships accessible through SNMP. Hopefully more
49
things can be added as Linux-HA matures."
51
REVISION "200711260000Z" -- Nov. 26, 2007
53
"The original version of this MIB."
54
::= { enterprises 4682 }
57
LHAUUIDString ::= TEXTUAL-CONVENTION
58
DISPLAY-HINT "4x-2x-2x-2x-4x2x"
61
"A string that represents a UUID"
62
SYNTAX OCTET STRING (SIZE (16))
64
LHAClusterInfo OBJECT IDENTIFIER ::= { LinuxHA 1 }
66
LHATotalNodeCount OBJECT-TYPE
71
"The number of nodes that are currently configured for this
73
::= { LHAClusterInfo 1 }
75
LHALiveNodeCount OBJECT-TYPE
80
"The number of nodes that are currently active in this
82
::= { LHAClusterInfo 2 }
84
LHACurrentNodeID OBJECT-TYPE
89
"The nodes id of the host that this agent currently
90
represents. This value is the same as the LHANodeIndex value
92
::= { LHAClusterInfo 3 }
94
LHAResourceGroupCount OBJECT-TYPE
99
"The total number of Resource Groups that have been
100
configured for this cluster."
101
::= { LHAClusterInfo 4 }
103
LHANodeTable OBJECT-TYPE
104
SYNTAX SEQUENCE OF lhaNodeEntry
105
MAX-ACCESS not-accessible
108
"A table contains information about all the nodes in the
112
LHANodeEntry OBJECT-TYPE
114
MAX-ACCESS not-accessible
117
"An entry containing a node and its statistics."
118
INDEX { LHANodeIndex }
119
::= { LHANodeTable 1 }
121
lhaNodeEntry ::= SEQUENCE {
122
LHANodeIndex Integer32,
123
LHANodeName DisplayString,
125
LHANodeStatus INTEGER,
126
LHANodeUUID DisplayString,
127
LHANodeIFCount Counter32,
130
LHANodeIndex OBJECT-TYPE
131
SYNTAX Integer32 (0..65535)
132
MAX-ACCESS not-accessible
135
"An integer that identifies a node in a cluster for a given
137
::= { LHANodeEntry 1 }
139
LHANodeName OBJECT-TYPE
144
"A human readable name that represents that node."
145
::= { LHANodeEntry 2 }
147
LHANodeType OBJECT-TYPE
156
"There could be many types of nodes in the cluster. For
157
example, a node could be a normal node, or a ping node
158
depending on the configuration. This object shows the
159
type of this node as an integer.
161
So far only the normal node and ping node are defined. All
162
the rest will fall into the 'unknown' catagory. "
163
::= { LHANodeEntry 3 }
165
LHANodeStatus OBJECT-TYPE
176
"The status of the node as an integer. For heartbeat, this
177
would normally be init, up, active, or dead.
179
So far, only these four states are defined. All the rest
180
falls in 'unknown' catagory."
181
::= { LHANodeEntry 4 }
183
LHANodeUUID OBJECT-TYPE
188
"The UUID of the current node in string representatio. This
189
UUID will be persisted over the heartbeat session. So it can
190
be used as a unique identifier for a node."
191
::= { LHANodeEntry 5 }
193
LHANodeIFCount OBJECT-TYPE
198
"The number of interfaces that is used by heartbeat
200
::= { LHANodeEntry 6 }
202
LHAIFStatusTable OBJECT-TYPE
203
SYNTAX SEQUENCE OF lhaIFEntry
204
MAX-ACCESS not-accessible
207
"A table describes all the interfaces that are used by the
211
LHAIFStatusEntry OBJECT-TYPE
212
SYNTAX lhaIFStatusEntry
213
MAX-ACCESS not-accessible
216
"An entry containing information about that interface.
217
The LHANodeIndex is listed in the LHANodeTable."
218
INDEX { LHANodeIndex, LHAIFIndex }
219
::= { LHAIFStatusTable 1 }
221
lhaIFStatusEntry ::= SEQUENCE {
222
LHAIFIndex Integer32,
223
LHAIFName DisplayString,
227
LHAIFIndex OBJECT-TYPE
228
SYNTAX Integer32 (0..65535)
229
MAX-ACCESS not-accessible
232
"An unique integer identifies this interface."
233
::= { LHAIFStatusEntry 1 }
235
LHAIFName OBJECT-TYPE
240
"A name for this interface."
241
::= { LHAIFStatusEntry 2 }
243
LHAIFStatus OBJECT-TYPE
252
"The status for this interface as an integer.
254
Currently only up and down are defined as the interface
255
status. All the others will fall into the unknown catagory."
256
::= { LHAIFStatusEntry 3 }
259
LHAResourceGroupTable OBJECT-TYPE
260
SYNTAX SEQUENCE OF lhaResourceGroupEntry
261
MAX-ACCESS not-accessible
264
"A table containing information of all the resource groups."
267
LHAResourceGroupEntry OBJECT-TYPE
268
SYNTAX lhaResourceGroupEntry
269
MAX-ACCESS not-accessible
272
"An entry that describes the resource group and its
274
INDEX { LHAResourceGroupIndex }
275
::= { LHAResourceGroupTable 1 }
277
lhaResourceGroupEntry ::= SEQUENCE {
278
LHAResourceGroupIndex Integer32,
279
LHAResourceGroupMaster DisplayString,
280
LHAResourceGroupResources DisplayString,
281
LHAResourceGroupStatus Integer32
284
LHAResourceGroupIndex OBJECT-TYPE
285
SYNTAX Integer32 (0..65535)
286
MAX-ACCESS not-accessible
289
"A unique integer that identifies this resource group."
290
::= { LHAResourceGroupEntry 1 }
292
LHAResourceGroupMaster OBJECT-TYPE
293
SYNTAX Integer32 (0..65535)
297
"The master node id of this resource group. This is
298
the LHANodeIndex for the master node of this resource
300
::= { LHAResourceGroupEntry 2 }
302
LHAResourceGroupResources OBJECT-TYPE
307
"The resources contained in this resource group."
308
::= { LHAResourceGroupEntry 3 }
310
LHAResourceGroupStatus OBJECT-TYPE
311
SYNTAX Unsigned32 (0..255)
315
"The status of this resource group.
318
1 program is dead and /var/run pid file exists
319
2 program is dead and /var/lock lock file exists
321
4-100 reserved for future LSB use
322
100-149 reserved for distribution use
323
150-199 reserved for application use
326
::= { LHAResourceGroupEntry 4 }
328
LHAMembershipTable OBJECT-TYPE
329
SYNTAX SEQUENCE OF lhaMembershipEntry
330
MAX-ACCESS not-accessible
333
"A table containing membership information for the cluster.
334
A successful membership has to have qurom.
338
If this table does not contain any entries, that means the
339
node is not part of the cluster membership."
342
LHAMembershipEntry OBJECT-TYPE
343
SYNTAX lhaMembershipEntry
344
MAX-ACCESS not-accessible
347
"An entry containing a member and its status."
348
INDEX { LHAMemberIndex }
349
::= { LHAMembershipTable 1 }
351
lhaMembershipEntry ::= SEQUENCE {
352
LHAMemberIndex Integer32,
353
LHAMemberName DisplayString,
354
LHAMemberAddress DisplayString,
355
LHAMemberClusterName DisplayString,
356
LHAMemberIsMember TruthValue,
357
LHAMemberLastChange INTEGER,
358
LHAMemberBootTime TimeStamp,
361
LHAMemberIndex OBJECT-TYPE
362
SYNTAX Integer32 (0..65535)
363
MAX-ACCESS not-accessible
366
"A unique integer that identifies this member."
367
::= { LHAMembershipEntry 1 }
369
LHAMemberName OBJECT-TYPE
374
"The name of the cluster member."
375
::= { LHAMembershipEntry 2 }
377
LHAMemberAddress OBJECT-TYPE
378
SYNTAX OCTET STRING (SIZE (64))
382
"The address of the cluster member."
383
::= { LHAMembershipEntry 3 }
385
LHAMemberClusterName OBJECT-TYPE
390
"The name of this cluster."
391
::= { LHAMembershipEntry 4 }
393
LHAMemberIsMember OBJECT-TYPE
398
"If this node is part of the membership or not."
399
::= { LHAMembershipEntry 5 }
401
LHAMemberLastChange OBJECT-TYPE
411
"If this node is part of the membership or not."
412
::= { LHAMembershipEntry 6 }
414
LHAMemberBootTime OBJECT-TYPE
419
"The time when this cluster member last started."
420
::= { LHAMembershipEntry 7 }
422
LHAHeartbeatConfigInfo OBJECT IDENTIFIER ::= { LinuxHA 7 }
424
LHAHBVersion OBJECT-TYPE
429
"The heartbeat version."
430
::= { LHAHeartbeatConfigInfo 1 }
432
LHAKeepAlive OBJECT-TYPE
437
"The heartbeat interval."
438
::= { LHAHeartbeatConfigInfo 3 }
440
LHADeadTime OBJECT-TYPE
445
"The time it waits before declaring a node to be dead."
446
::= { LHAHeartbeatConfigInfo 4 }
448
LHADeadPing OBJECT-TYPE
453
"The time it waits before declaring a ping node to be dead."
454
::= { LHAHeartbeatConfigInfo 5 }
456
LHAWarnTime OBJECT-TYPE
461
"The time it waits before issuing a 'late heartbeat' warning."
462
::= { LHAHeartbeatConfigInfo 6 }
464
LHAInitDead OBJECT-TYPE
469
"Very first dead time. Should be twice the normal dead time."
470
::= { LHAHeartbeatConfigInfo 7 }
472
LHABaudRate OBJECT-TYPE
477
"Baud rate for serial ports."
478
::= { LHAHeartbeatConfigInfo 9 }
480
LHAAutoFailBack OBJECT-TYPE
490
"Determins whether a resource will automatically fail back to
491
its primary node, or remain on whatever the node is serving.
493
Possible values are: on, off, legacy."
494
::= { LHAHeartbeatConfigInfo 12 }
496
LHAStonith OBJECT-TYPE
501
"The STONITH device configured for this cluster."
502
::= { LHAHeartbeatConfigInfo 13 }
504
LHAStonithHost OBJECT-TYPE
509
"The STONITH host configured for this cluster."
510
::= { LHAHeartbeatConfigInfo 14 }
512
LHARespawn OBJECT-TYPE
517
"The other services that got respawned by heartbeat daemon."
518
::= { LHAHeartbeatConfigInfo 15 }
520
LHAResourceTable OBJECT-TYPE
521
SYNTAX SEQUENCE OF lhaResourceEntry
522
MAX-ACCESS not-accessible
525
"A table containing information of all the resource for V2."
528
LHAResourceEntry OBJECT-TYPE
529
SYNTAX lhaResourceEntry
530
MAX-ACCESS not-accessible
533
"An entry that describes the resource and its status for V2."
534
INDEX { LHAResourceIndex }
535
::= { LHAResourceTable 1 }
537
lhaResourceEntry ::= SEQUENCE {
538
LHAResourceIndex Integer32,
539
LHAResourceName DisplayString,
540
LHAResourceType INTEGER,
541
LHAResourceNode DisplayString,
542
LHAResourceStatus INTEGER,
543
LHAResourceIsManaged INTEGER,
544
LHAResourceFailCount Integer32,
545
LHAResourceParent DisplayString,
548
LHAResourceIndex OBJECT-TYPE
549
SYNTAX Integer32 (0..65535)
550
MAX-ACCESS not-accessible
553
"A unique integer that identifies this resource."
554
::= { LHAResourceEntry 1 }
556
LHAResourceName OBJECT-TYPE
561
"The name of this resource."
562
::= { LHAResourceEntry 2 }
564
LHAResourceType OBJECT-TYPE
575
"The type of this resource.
577
1 primitive resource.
580
4 master/slave resource.
582
::= { LHAResourceEntry 3 }
584
LHAResourceNode OBJECT-TYPE
589
"The node name that this resource resides on."
590
::= { LHAResourceEntry 4 }
592
LHAResourceStatus OBJECT-TYPE
603
"The status of this resource.
605
1 program is stopped.
606
2 program is started.
607
3 program is started in slave state.
608
4 program is started in master state.
610
::= { LHAResourceEntry 5 }
612
LHAResourceIsManaged OBJECT-TYPE
620
"The status of this resource.
621
0 resource is not managed.
622
1 resource is managed.
624
::= { LHAResourceEntry 6 }
626
LHAResourceFailCount OBJECT-TYPE
627
SYNTAX Integer32 (0..65535)
631
"The value of this resource's fail-count."
632
::= { LHAResourceEntry 7 }
634
LHAResourceParent OBJECT-TYPE
639
"The name of this resource's parent resource."
640
::= { LHAResourceEntry 8 }
642
LHATrapTable OBJECT IDENTIFIER ::= { LinuxHA 900 }
644
LHANodeStatusUpdate NOTIFICATION-TYPE
645
OBJECTS { LHANodeName LHANodeStatus }
648
"A node status change event just happened."
649
::= { LHATrapTable 1 }
651
LHAIFStatusUpdate NOTIFICATION-TYPE
652
OBJECTS { LHANodeName LHAIFName LHAIFStatus }
655
"A link status just changed."
656
::= { LHATrapTable 3 }
658
LHAMembershipChange NOTIFICATION-TYPE
659
OBJECTS { LHANodeName LHAMemberLastChange }
662
"A node just changed it membership. "
663
::= { LHATrapTable 5 }
665
LHAHBAgentOnline NOTIFICATION-TYPE
666
OBJECTS { LHANodeName }
669
"The heartbeat agent for this node is online and ready to accept queries. "
670
::= { LHATrapTable 7 }
672
LHAHBAgentOffline NOTIFICATION-TYPE
673
OBJECTS { LHANodeName }
676
"The heartbeat agent for this node is offline. "
677
::= { LHATrapTable 9 }
679
LHAResourceStatusUpdate NOTIFICATION-TYPE
680
OBJECTS { LHAResourceName LHAResourceNode LHAResourceStatus }
683
"A resource status change event just happened."
684
::= { LHATrapTable 11 }