]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
SNMP: allocate local-use ranges for traps and trapObjects 10583/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 12 Jul 2021 12:18:15 +0000 (14:18 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 12 Jul 2021 12:18:15 +0000 (14:18 +0200)
pdns/AUTH-MIB.txt [new file with mode: 0644]
pdns/dnsdistdist/DNSDIST-MIB.txt
pdns/recursordist/RECURSOR-MIB.txt

diff --git a/pdns/AUTH-MIB.txt b/pdns/AUTH-MIB.txt
new file mode 100644 (file)
index 0000000..94d1a12
--- /dev/null
@@ -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 "support@powerdns.com"
+    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
index 297d7304ffa3105d0cec739318b460a01fe0cc94..d6f5a92568fcc203597b42ea4f78ff6afd513888 100644 (file)
@@ -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,
@@ -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
 ---
index cc7ad62b84e8002d540badfc6beb8f8bef4360f8..738a7a04a6bce2b43c67b5e71f7bb1fba1145f02 100644 (file)
@@ -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
@@ -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
 ---