[Pacemaker] SNMP MIB for pacemaker

Michael Schwartzkopff misch at multinet.de
Mon Oct 5 07:20:57 EDT 2009


Hi,

please find attached my first tests for a new pacemaker MIB for the 
enterprises.32723 OID.

This OID is used by the crm_mon tool the send traps in case of a state change 
of a resource when called by
crm_mon -S <manager> -d

@beekhof: Please could you check if I unterstood the variables correctly? 
Please could you also check all the valiables sizes?

@ALL: Please review. Thanks.

Greetings,
-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch at multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
-------------- next part --------------
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:	misch at schwartzkopff.org"
    DESCRIPTION
	"MIB objects for the pacemaker cluster manager implementation"
    REVISION     "200910051115Z"
    DESCRIPTION
	"First draft"
    ::= { 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 of the operation 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 actual status of the resource."
::= { 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


More information about the Pacemaker mailing list