diff --git a/extra/Makefile.am b/extra/Makefile.am index 96f43d0400..471de39586 100644 --- a/extra/Makefile.am +++ b/extra/Makefile.am @@ -1,21 +1,24 @@ # # Copyright (C) 2004-2009 Andrew Beekhof # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # MAINTAINERCLEANFILES = Makefile.in SUBDIRS = resources + +mibdir = $(datadir)/snmp/mibs +mib_DATA = PCMK-MIB.txt diff --git a/extra/PCMK-MIB.txt b/extra/PCMK-MIB.txt new file mode 100644 index 0000000000..3554e68bfb --- /dev/null +++ b/extra/PCMK-MIB.txt @@ -0,0 +1,97 @@ +PACEMAKER-MIB DEFINITIONS ::= BEGIN + +-- +-- MIB objects for the pacemaker cluster manager implementation +-- + +IMPORTS + MODULE-IDENTITY, OBJECT-TYPE, Integer32, + NOTIFICATION-TYPE, enterprises FROM SNMPv2-SMI + SnmpAdminString FROM SNMP-FRAMEWORK-MIB + netSnmp FROM NET-SNMP-MIB + RowStatus, StorageType FROM SNMPv2-TC + InetAddressType, InetAddress FROM INET-ADDRESS-MIB +; + +pacemaker MODULE-IDENTITY + LAST-UPDATED "200901051115Z" + ORGANIZATION "www.clusterlabs.org" + CONTACT-INFO + "name: Michael Schwartzkopff + email: pacemaker@oss.clusterlabs.org" + DESCRIPTION + "MIB objects for the pacemaker cluster manager implementation" + REVISION "200910051115Z" + DESCRIPTION + "First draft" + REVISION "200910062115Z" + DESCRIPTION + "Corrections after feedback from beekhof" + ::= { enterprises 32723 } + +-- +-- top level structure +-- +pacemakerNotification OBJECT IDENTIFIER ::= { pacemaker 1 } + +-- +-- pacemaker Notifications +-- + +pacemakerNotificationNode OBJECT-TYPE + SYNTAX OCTET STRING (SIZE(1..64)) + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The node on which the status change happened." +::= { pacemakerNotification 1 } + +pacemakerNotificationResource OBJECT-TYPE + SYNTAX OCTET STRING (SIZE(1..256)) + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The name of the resource that changed the status." +::= { pacemakerNotification 2 } + +pacemakerNotificationOperation OBJECT-TYPE + SYNTAX OCTET STRING (SIZE(1..64)) + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The operation that caused the status change." +::= { pacemakerNotification 3 } + +pacemakerNotificationDescription OBJECT-TYPE + SYNTAX OCTET STRING (SIZE(1..256)) + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The textual output relevant error code of the operation (if any) that caused the status change." +::= { pacemakerNotification 4 } + +pacemakerNotificationStatus OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The numerical representation of the status of the operation." +::= { pacemakerNotification 5 } + +pacemakerNotificationReturnCode OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The return code of the operation." +::= { pacemakerNotification 6 } + +pacemakerNotificationTargetReturnCode OBJECT-TYPE + SYNTAX Integer32 + MAX-ACCESS accessible-for-notify + STATUS current + DESCRIPTION + "The expected return code of the operation." +::= { pacemakerNotification 7 } + +END