Skip to content

Commit

Permalink
SNMP: allocate local-use ranges for traps and trapObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Jul 12, 2021
1 parent 85b1ab8 commit e43682e
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
77 changes: 77 additions & 0 deletions pdns/AUTH-MIB.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
-- -*- snmpv2 -*-
-- ----------------------------------------------------------------------
-- MIB file for PowerDNS Authoritative
-- ----------------------------------------------------------------------

PDNSAUTH-MIB DEFINITIONS ::= BEGIN

IMPORTS
OBJECT-TYPE, MODULE-IDENTITY, enterprises,
Counter64, NOTIFICATION-TYPE
FROM SNMPv2-SMI
CounterBasedGauge64
FROM HCNUM-TC
OBJECT-GROUP, MODULE-COMPLIANCE, NOTIFICATION-GROUP
FROM SNMPv2-CONF;

auth MODULE-IDENTITY
LAST-UPDATED "202106120000Z"
ORGANIZATION "PowerDNS BV"
CONTACT-INFO "[email protected]"
DESCRIPTION
"This MIB module describes information gathered through PowerDNS Authoritative."

REVISION "202106120000Z"
DESCRIPTION "Initial revision. Only a placeholder to allow allocating traps.5000-5999 and trapObjects.5000-5999 for local usage."

::= { powerdns 1 }

powerdns OBJECT IDENTIFIER ::= { enterprises 43315 }

stats OBJECT IDENTIFIER ::= { auth 1 }

---
--- Traps / Notifications
---

trap OBJECT IDENTIFIER ::= { auth 10 }
traps OBJECT IDENTIFIER ::= { trap 0 } --- reverse-mappable
trapObjects OBJECT IDENTIFIER ::= { auth 11 }

--- { trapObjects 5000 } up to and including { trapObjects 5999 } are reserved for local, product-specific extensions to the Authoritative MIB

--- { traps 5000 } up to and including { traps 5999 } are reserved for local, product-specific extensions to the Authoritative MIB

---
--- Conformance
---

authConformance OBJECT IDENTIFIER ::= { auth 100 }

authCompliances MODULE-COMPLIANCE
STATUS current
DESCRIPTION "PowerDNS authoritative compliance statement"
MODULE
MANDATORY-GROUPS {
authGroup,
authTrapsGroup
}
::= { authConformance 1 }

authGroup OBJECT-GROUP
OBJECTS {

}
STATUS current
DESCRIPTION "Objects conformance group for PowerDNS Authoritative"
::= { authConformance 2 }

authTrapsGroup NOTIFICATION-GROUP
NOTIFICATIONS {
customTrap
}
STATUS current
DESCRIPTION "Traps conformance group for PowerDNS Authoritative"
::= { authConformance 3 }

END
4 changes: 4 additions & 0 deletions pdns/dnsdistdist/DNSDIST-MIB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,8 @@ trapReason OBJECT-TYPE
"Reason for this trap"
::= { trapObjects 11 }

--- { trapObjects 5000 } up to and including { trapObjects 5999 } are reserved for local, product-specific extensions to the dnsdist MIB

backendStatusChangeTrap NOTIFICATION-TYPE
OBJECTS {
backendName,
Expand Down Expand Up @@ -641,6 +643,8 @@ customTrap NOTIFICATION-TYPE
DESCRIPTION "Trap sent by sendCustomTrap"
::= { traps 3 }

--- { traps 5000 } up to and including { traps 5999 } are reserved for local, product-specific extensions to the dnsdist MIB

---
--- Conformance
---
Expand Down
4 changes: 4 additions & 0 deletions pdns/recursordist/RECURSOR-MIB.txt
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,8 @@ trapReason OBJECT-TYPE
"Reason for this trap"
::= { trapObjects 1 }

--- { trapObjects 5000 } up to and including { trapObjects 5999 } are reserved for local, product-specific extensions to the Recursor MIB

customTrap NOTIFICATION-TYPE
OBJECTS {
trapReason
Expand All @@ -970,6 +972,8 @@ customTrap NOTIFICATION-TYPE
DESCRIPTION "Trap sent by sendCustomTrap"
::= { traps 1 }

--- { traps 5000 } up to and including { traps 5999 } are reserved for local, product-specific extensions to the Recursor MIB

---
--- Conformance
---
Expand Down

0 comments on commit e43682e

Please sign in to comment.