PageRenderTime 26ms CodeModel.GetById 15ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/opennms-base-assembly/src/main/filtered/etc/datacollection/pfsense.xml

https://github.com/ajakubo1/opennms
XML | 133 lines | 117 code | 11 blank | 5 comment | 0 complexity | e4eba6aca338d6e9e7355fbae91e9306 MD5 | raw file
  1<?xml version="1.0"?>
  2<datacollection-group name="pfSense">
  3
  4      <resourceType name="pfIfIfIndex" label="pfSense Interface" resourceLabel="${pfIfIfDescr}">
  5        <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy" />
  6        <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
  7          <parameter key="sibling-column-name" value="pfIfIfDescr" />
  8        </storageStrategy>
  9      </resourceType>
 10
 11      <resourceType name="pfTablesTblIndex" label="pfSense PF Table" resourceLabel="${pftTblDescr}">
 12        <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy" />
 13        <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
 14          <parameter key="sibling-column-name" value="pftTblDescr" />
 15        </storageStrategy>
 16      </resourceType>
 17
 18      <resourceType name="pfLabelsLblIndex" label="pfSense PF Label" resourceLabel="${pfLabelsLblName}">
 19        <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy" />
 20        <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
 21          <parameter key="sibling-column-name" value="pfLabelsLblName" />
 22        </storageStrategy>
 23      </resourceType>
 24
 25    <resourceType name="hrStorageFBSD" label="Storage (FreeBSD, MIB-2 Host Resources)"
 26                  resourceLabel="${hrStorageDescr}">
 27      <persistenceSelectorStrategy class="org.opennms.netmgt.collectd.PersistRegexSelectorStrategy">
 28        <parameter key="match-expression" value="not(#hrStorageDescr matches '^(MALLOC|UMA):.*')" />
 29      </persistenceSelectorStrategy>
 30      <storageStrategy class="org.opennms.netmgt.dao.support.SiblingColumnStorageStrategy">
 31          <parameter key="sibling-column-name" value="hrStorageDescr" />
 32          <parameter key="replace-first" value="s/^-$/_root_fs/" />
 33          <parameter key="replace-all" value="s/^-//" />
 34          <parameter key="replace-all" value="s/\s//" />
 35          <parameter key="replace-all" value="s/:\\.*//" />
 36      </storageStrategy>
 37    </resourceType>
 38
 39      <!-- pfSense MIBs -->
 40      <group name="pfsense-system-scalars" ifType="ignore">
 41        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.1" instance="0" alias="pfCounterMatch"     type="counter" />
 42        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.2" instance="0" alias="pfCounterBadOffset" type="counter" />
 43        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.3" instance="0" alias="pfCounterFragment"  type="counter" />
 44        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.4" instance="0" alias="pfCounterShort"     type="counter" />
 45        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.5" instance="0" alias="pfCounterNormalize" type="counter" />
 46        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.2.6" instance="0" alias="pfCounterMemDrop"   type="counter" />
 47      </group>
 48
 49      <group name="pfsense-statetable-scalars" ifType="ignore">
 50        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.3.1" instance="0" alias="pfStateTblCount"    type="gauge" />
 51        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.3.2" instance="0" alias="pfStateTblSearches" type="counter" />
 52        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.3.3" instance="0" alias="pfStateTblInserts"  type="counter" />
 53        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.3.4" instance="0" alias="pfStateTblRemovals" type="counter" />
 54      </group>
 55
 56      <group name="pfsense-srcnode-scalars" ifType="ignore">
 57        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.4.1" instance="0" alias="pfSrcNodesCount"    type="gauge" />
 58        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.4.2" instance="0" alias="pfSrcNodesSearches" type="counter" />
 59        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.4.3" instance="0" alias="pfSrcNodesInserts"  type="counter" />
 60        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.4.4" instance="0" alias="pfSrcNodesRemovals" type="counter" />
 61      </group>
 62
 63      <group name="pfsense-pfinterfaces" ifType="all">
 64        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.2"  instance="pfIfIfIndex" alias="pfIfIfDescr"         type="string" />
 65        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.5"  instance="pfIfIfIndex" alias="pfIfIfRefsState"     type="gauge" />
 66        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.6"  instance="pfIfIfIndex" alias="pfIfIfRefsRule"      type="gauge" />
 67        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.7"  instance="pfIfIfIndex" alias="pfIfIf4BytesInPass"  type="counter" />
 68        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.8"  instance="pfIfIfIndex" alias="pfIfIf4BytesInBlk"   type="counter" />
 69        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.9"  instance="pfIfIfIndex" alias="pfIfIf4BytesOutPass" type="counter" />
 70        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.10" instance="pfIfIfIndex" alias="pfIfIf4BytesOutBlk"  type="counter" />
 71        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.11" instance="pfIfIfIndex" alias="pfIfIf4PktsInPass"   type="counter" />
 72        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.12" instance="pfIfIfIndex" alias="pfIfIf4PktsInBlk"    type="counter" />
 73        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.13" instance="pfIfIfIndex" alias="pfIfIf4PktsOutPass"  type="counter" />
 74        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.14" instance="pfIfIfIndex" alias="pfIfIf4PktsOutBlk"   type="counter" />
 75        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.15" instance="pfIfIfIndex" alias="pfIfIf6BytesInPass"  type="counter" />
 76        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.16" instance="pfIfIfIndex" alias="pfIfIf6BytesInBlk"   type="counter" />
 77        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.17" instance="pfIfIfIndex" alias="pfIfIf6BytesOutPass" type="counter" />
 78        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.18" instance="pfIfIfIndex" alias="pfIfIf6BytesOutBlk"  type="counter" />
 79        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.19" instance="pfIfIfIndex" alias="pfIfIf6PktsInPass"   type="counter" />
 80        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.20" instance="pfIfIfIndex" alias="pfIfIf6PktsInBlk"    type="counter" />
 81        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.21" instance="pfIfIfIndex" alias="pfIfIf6PktsOutPass"  type="counter" />
 82        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.8.2.1.22" instance="pfIfIfIndex" alias="pfIfIf6PktsOutBlk"   type="counter" />
 83      </group>
 84
 85      <group name="pfsense-pftables" ifType="all">
 86        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.2"  instance="pfTablesTblIndex" alias="pftTblDescr" type="string" />
 87        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.3"  instance="pfTablesTblIndex" alias="pftTblCount" type="gauge" />
 88        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.5"  instance="pfTablesTblIndex" alias="pftTblRefsAnchor" type="gauge" />
 89        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.6"  instance="pfTablesTblIndex" alias="pftTblRefsRule" type="gauge" />
 90        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.7"  instance="pfTablesTblIndex" alias="pftTblEvalMatch" type="counter" />
 91        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.8"  instance="pfTablesTblIndex" alias="pftTblEvalNoMatch" type="counter" />
 92        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.9"  instance="pfTablesTblIndex" alias="pftTblBytesInPass" type="counter" />
 93        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.10" instance="pfTablesTblIndex" alias="pftTblBytesInBlock" type="counter" />
 94        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.11" instance="pfTablesTblIndex" alias="pftTblBytesInXPass" type="counter" />
 95        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.12" instance="pfTablesTblIndex" alias="pftTblBytesOutPass" type="counter" />
 96        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.13" instance="pfTablesTblIndex" alias="pftTblBytesOutBlock" type="counter" />
 97        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.14" instance="pfTablesTblIndex" alias="pftTblBytesOutXPass" type="counter" />
 98        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.15" instance="pfTablesTblIndex" alias="pftTblPktsInPass" type="counter" />
 99        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.16" instance="pfTablesTblIndex" alias="pftTblPktsInBlock" type="counter" />
100        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.17" instance="pfTablesTblIndex" alias="pftTblPktsInXPass" type="counter" />
101        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.18" instance="pfTablesTblIndex" alias="pftTblPktsOutPass" type="counter" />
102        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.19" instance="pfTablesTblIndex" alias="pftTblPktsOutBlock" type="counter" />
103        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.9.2.1.20" instance="pfTablesTblIndex" alias="pftTblPktsOutXPass" type="counter" />
104      </group>
105
106      <group name="pfsense-labels" ifType="all">
107        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.2" instance="pfLabelsLblIndex" alias="pfLabelsLblName" type="string" />
108        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.3" instance="pfLabelsLblIndex" alias="pfLabelsLblEvals" type="counter" />
109        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.4" instance="pfLabelsLblIndex" alias="pfLabelsLblBytesIn" type="counter" />
110        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.5" instance="pfLabelsLblIndex" alias="pfLabelsLblBytesOut" type="counter" />
111        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.6" instance="pfLabelsLblIndex" alias="pfLabelsLblPktsIn" type="counter" />
112        <mibObj oid=".1.3.6.1.4.1.12325.1.200.1.11.2.1.7" instance="pfLabelsLblIndex" alias="pfLabelsLblPktsOut" type="counter" />
113      </group>
114
115      <systemDef name="pfSense">
116        <sysoidMask>.1.3.6.1.4.1.12325.1.1.</sysoidMask>
117        <collect>
118          <includeGroup>mib2-host-resources-system</includeGroup>
119          <includeGroup>mib2-host-resources-memory</includeGroup>
120          <!-- hrStorage is problematic on pfSense, over 200 instances on 2.0.1 -->
121          <!-- <includeGroup>mib2-host-resources-storage</includeGroup> -->
122          <includeGroup>mib2-X-interfaces</includeGroup>
123          <includeGroup>mib2-X-interfaces-pkts</includeGroup>
124          <includeGroup>pfsense-system-scalars</includeGroup>
125          <includeGroup>pfsense-statetable-scalars</includeGroup>
126          <includeGroup>pfsense-srcnode-scalars</includeGroup>
127          <includeGroup>pfsense-pfinterfaces</includeGroup>
128          <includeGroup>pfsense-pftables</includeGroup>
129          <!-- Omitting labels since I have no way to test on my instance -->
130          <!-- <includeGroup>pfsense-labels</includeGroup> -->
131        </collect>
132      </systemDef>
133</datacollection-group>