NSI-MIB DEFINITIONS ::= BEGIN

 --
 -- MIB Definitions for Panther Double-Take
 --

IMPORTS

       MODULE-IDENTITY, 
       OBJECT-TYPE, 
       NOTIFICATION-TYPE,
       enterprises, 
       Counter32, 
       IpAddress, 
       TimeTicks, 
       Gauge32, 
       Counter64
    FROM SNMPv2-SMI
       DisplayString
    FROM RFC1213-MIB
;

--
-- This MIB module uses the extended OBJECT-TYPE macro as
-- defined in [14];
--

nsiMIB MODULE-IDENTITY
    LAST-UPDATED "200805050000Z" -- 5th May 2008
    ORGANIZATION "Double-Take Software"
    CONTACT-INFO "Email: support@doubletake.com"
    DESCRIPTION  "This is the MIB module for the Double-Take SNMP SubAgent
              Protocol (DTSubAgent)."
    REVISION     "200805050000Z" -- 5th May 2008
    DESCRIPTION
          "First Draft."
          ::= { enterprises 2592 }


    nsiDoubleTake OBJECT IDENTIFIER ::= { nsiMIB 3 }
    dtNotify       OBJECT IDENTIFIER ::= { nsiDoubleTake 1 }
    dtGeneral      OBJECT IDENTIFIER ::= { nsiDoubleTake 2 }
    dtSource       OBJECT IDENTIFIER ::= { nsiDoubleTake 3 }
    dtTarget       OBJECT IDENTIFIER ::= { nsiDoubleTake 4 }
    dtSecurity     OBJECT IDENTIFIER ::= { nsiDoubleTake 5 }
    dtConnection   OBJECT IDENTIFIER ::= { nsiDoubleTake 6 }

--
-- Some objects
--

--
-- General Stats
--
   dtUpTime OBJECT-TYPE
       SYNTAX TimeTicks
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Time (in seconds) since Double-Take was last started."
       ::= {dtGeneral 1}

   dtCurrentMemoryUsage OBJECT-TYPE
       SYNTAX Gauge32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Current amount of memory allocated (in bytes) from the Double-Take memory pool."
       ::= {dtGeneral 2}

   dtMirOpsGenerated OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of mirror ops generated by the mirror driver."
       ::= {dtGeneral 3}

    dtMirBytesGenerated OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total bytes mirrored by the mirror driver."
       ::= {dtGeneral 4}

    dtRepOpsGenerated OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of ops generated by the file system driver."
       ::= {dtGeneral 5}

    dtRepBytesGenerated OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total bytes generated by the file system driver."
       ::= {dtGeneral 6}

   dtSourceState OBJECT-TYPE
       SYNTAX INTEGER {
          notLoaded(0),
          loadedNoDriver(1),
          loadedWithDriver(2) }
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "0:Source not running, 1:Source running no driver, 2:Source running with driver"
       ::= {dtSource 1}

   dtTargetState OBJECT-TYPE
       SYNTAX INTEGER {
          notLoaded(0),
          loaded(1) }
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "0:Target not running, 1:Target running"
       ::= {dtTarget 1}

   dtRetryCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of file operations that have been retried."
       ::= {dtTarget 2}

   dtOpsDroppedCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of file operations that have failed and will not be retried."
       ::= {dtTarget 3}

   dtLoginCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of successful logins."
       ::= {dtSecurity 1}

   dtFailedLoginCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of un-successful logins."
       ::= {dtSecurity 2}

   dtFailedMirrorCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of files and Ops that failed to mirror because they couldn't be read on the source."
       ::= {dtGeneral 7}

   dtFailedRepCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of Ops that failed to replicate because they couldn't be read on the source."
       ::= {dtGeneral 8}

   dtActFailCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of activation code errors."
       ::= {dtGeneral 9}

   dtAutoDisCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of Auto-Disconnects."
       ::= {dtGeneral 10}

   dtAutoReCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of Auto-Reconnects."
       ::= {dtGeneral 11}

--
-- Connection Stats 
--
    dtConnectionCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of connections currently active."
       ::= {dtConnection 1}

    dtConnectionTable OBJECT-TYPE
       SYNTAX SEQUENCE OF DtConnectionEntry
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
        "The entries in the table are defined below, one row per connection."
       ::= {dtConnection 2}

    dtConnectionEntry OBJECT-TYPE
       SYNTAX DtConnectionEntry
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
        "An entry in the table dtConnectionTable."
       INDEX { dtConnectionIndex }
       ::= {dtConnectionTable 1}

    DtConnectionEntry ::= SEQUENCE {
       dtConnectionIndex        INTEGER,
       dtconIpAddress           IpAddress,
       dtconConnectTime         TimeTicks,
       dtconState               INTEGER,
       dtconOpsInCmdQueue       Gauge32,
       dtconOpsInAckQueue       Gauge32,
       dtconOpsInRepQueue       Gauge32,
       dtconOpsInMirQueue       Gauge32,
       dtconBytesInRepQueue     Counter64,
       dtconBytesInMirQueue     Counter64,
       dtconOpsTx               Counter32,
       dtconBytesTransferred    Counter64,
       dtconBytesTransmitted    Counter64,
       dtconOpsRx               Counter64,
       dtconBytesRx             Counter64,
       dtconResentOpCount       Counter32
    }

--
-- The entries
--
    dtConnectionIndex OBJECT-TYPE
       SYNTAX INTEGER (1..2147483647)
       MAX-ACCESS not-accessible
       STATUS current
       DESCRIPTION
        "An index to uniquely identify the entry."
       ::= {dtConnectionEntry 1}

    dtconIpAddress OBJECT-TYPE
       SYNTAX IpAddress
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Address of the machine on the other end of the connection, this is the key column in the table."
       ::= {dtConnectionEntry 2}

    dtconConnectTime OBJECT-TYPE
       SYNTAX TimeTicks
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Amount of time (in seconds) connection has been active."
       ::= {dtConnectionEntry 3}

    dtconState OBJECT-TYPE
       SYNTAX INTEGER {
          conError(0),
          conActive(1),
          conPaused(2),
          conScheduled(3),
          conNone(4)
          }
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Integer coded for the current state of the connection."
       ::= {dtConnectionEntry 4}

    dtconOpsInCmdQueue OBJECT-TYPE
       SYNTAX Gauge32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of ops in the command/retransmit queue."
       ::= {dtConnectionEntry 5}

    dtconOpsInAckQueue OBJECT-TYPE
       SYNTAX Gauge32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of ops awaiting acknowledgements."
       ::= {dtConnectionEntry 6}

    dtconOpsInRepQueue OBJECT-TYPE
       SYNTAX Gauge32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of replication ops queued."
       ::= {dtConnectionEntry 7}

    dtconOpsInMirQueue OBJECT-TYPE
       SYNTAX Gauge32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of mirror ops queued."
       ::= {dtConnectionEntry 8}

    dtconBytesInRepQueue OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of bytes of data associated with the queued replication ops."
       ::= {dtConnectionEntry 9}

    dtconBytesInMirQueue OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "The number of bytes of data associated with the queued mirror ops."
       ::= {dtConnectionEntry 10}

    dtconOpsTx OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total number of ops transmitted."
       ::= {dtConnectionEntry 11}

    
    dtconBytesTransferred OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total number of bytes transmitted."
       ::= {dtConnectionEntry 12}

    dtconBytesTransmitted OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total number of bytes transmitted."
       ::= {dtConnectionEntry 13}

    dtconOpsRx OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total number of ops received."
       ::= {dtConnectionEntry 14}

    dtconBytesRx OBJECT-TYPE
       SYNTAX Counter64
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Total number of bytes received."
       ::= {dtConnectionEntry 15}

    dtconResentOpCount OBJECT-TYPE
       SYNTAX Counter32
       MAX-ACCESS read-only
       STATUS current
       DESCRIPTION
        "Number of Ops that were resent because of ack errors."
       ::= {dtConnectionEntry 16}


--   ===============================================================
--   ===============================================================

--
-- Traps and Events
--
-- The NOTIFICATION-TYPE traps are for 4.6.1 and later DTSubAgents that
--    be sending out the corrected trap codes using an SNMPv2 style trap call

    dtnotifyKernelStarted NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take kernel has started."
    ::= { dtNotify 1 }

    dtnotifyKernelStopped NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take kernel has stopped."
    ::= { dtNotify 2 }

    dtnotifyLicenseViolationStartingSource NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Double-Take source or target cannot be started due to a license violation."
    ::= { dtNotify 3 }

    dtnotifyLicenseViolationOnNetwork NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A Double-Take serial number conflict was identified on the network."
    ::= { dtNotify 4 }

    dtnotifySourceStarted NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take source module has started."
    ::= { dtNotify 5 }

    dtnotifySourceStopped NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take source module has stopped."
    ::= { dtNotify 6 }

    dtnotifyTargetStarted NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take target module has started."
    ::= { dtNotify 7 }

    dtnotifyTargetStopped NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take target module is stopped."
    ::= { dtNotify 8 }

    dtnotifyConnectionRequested NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A NetOriginator has attempted to connect to a NetResponder normally."
    ::= { dtNotify 9 }

    dtnotifyConnectionRequestReceived NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A NetController received a request to start a new connection."
    ::= { dtNotify 10 }

    dtnotifyConnectionSucceded NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A NetOriginator successfully achieved a connection."
    ::= { dtNotify 11 }

    dtnotifyConnectionPause NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A Transmission was paused."
    ::= { dtNotify 12 }

    dtnotifyConnectionResume NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A Transmission was resumed."
    ::= { dtNotify 13 }

    dtnotifyConnectionFailed NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A NetOriginator was not successful in achieving a connection."
    ::= { dtNotify 14 }

    dtnotifyConnectionLost NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A connection was lost by the NetOriginator or NetResponder."
    ::= { dtNotify 15 }

    dtnotifyMemoryLimitReached NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The Double-Take memory pool limit was exceeded."
    ::= { dtNotify 16 }

    dtnotifyMemoryLimitRemedied NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Memory has been freed to bring the Double-Take memory pool usage below the limit."
    ::= { dtNotify 17 }

    dtnotifyAutoReconnect NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
    "Auto reconnect needs to make a new connection."
    ::= { dtNotify 18 }

    dtnotifyScheduledConnectStart NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
    "Start of a scheduled connect period."
    ::= { dtNotify 19 }

    dtnotifyScheduledConnectEnd NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "End of a scheduled connect period."
    ::= { dtNotify 20 }

    dtnotifyAutoDisconnectWriteQueue NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Auto disconnect forced a queue to be written to disk."
    ::= { dtNotify 21 }

    dtnotifyAutoDisconnectPauseTransmission NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Auto disconnect requested a source to pause sending ops."
    ::= { dtNotify 22 }

    dtnotifyAutoDisconnectEndConnection NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Auto disconnect dropped a connection."
    ::= { dtNotify 23 }

    dtnotifyAutoDisconnectShutdown NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Auto disconnect was forced to shut down Double-Take."
    ::= { dtNotify 24 }

    dtnotifyReplicationStart NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Replication was started on a connection."
    ::= { dtNotify 25 }

    dtnotifyReplicationStop NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Replication was stopped on a connection."
    ::= { dtNotify 26 }

    dtnotifyMirrorStart NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Mirroring was started on a connection."
    ::= { dtNotify 27 }

    dtnotifyMirrorStop NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Mirroring was stopped on a connection."
    ::= { dtNotify 28 }

    dtnotifyMirrorPause NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Mirroring was paused on a connection."
    ::= { dtNotify 29 }

    dtnotifyMirrorResume NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Mirroring was resumed on a connection."
    ::= { dtNotify 30 }

    dtnotifyMirrorEnd NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Mirroring has ended on a connection."
    ::= { dtNotify 31 }

    dtnotifyVerificationStart NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Verification was started."
    ::= { dtNotify 32 }

    dtnotifyVerificationEnd NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Verification is finished."
    ::= { dtNotify 33 }

    dtnotifyVerficationFailure NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Verification found the source and target out of sync."
    ::= { dtNotify 34 }

    dtnotifyRestoreStarted NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Restoration has begun."
    ::= { dtNotify 35 }

    dtnotifyRestoreComplete NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Restoration has finished."
    ::= { dtNotify 36 }

    dtnotifyRepSetModified NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "The replication set was modified."
    ::= { dtNotify 37 }

    dtnotifyFailoverConditionMet NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "A Failover Condition has been met.  User intervention is necessary!"
    ::= { dtNotify 38 }

    dtnotifyFailoverInProgress NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
        "Failover is in progress!"
    ::= { dtNotify 39 }
    
    dtnotifyTargetFull NOTIFICATION-TYPE
       STATUS current
       DESCRIPTION
       "Target is full."
    ::= { dtNotify 40 }

END
