why this small datacollection-config.xml is not valid in opennms?
"M.Karthikeyan" <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <CABW4RJCMy0=SLF0CWW8Lv2f2fTKA8Yaat1DRrwbdVLySnteNiA@mail.gmail.com> |
<?xml version="1.0"?>
<datacollection-config rrdRepository="/var/lib/opennms/rrd/snmp/">
<snmp-collection name="default" snmpStorageFlag="select">
<rrd step="300">
<rra>RRA:AVERAGE:0.5:1:2016</rra>
<rra>RRA:AVERAGE:0.5:12:1488</rra>
<rra>RRA:AVERAGE:0.5:288:366</rra>
<rra>RRA:MAX:0.5:288:366</rra>
<rra>RRA:MIN:0.5:288:366</rra>
</rrd>
<resourceType name="testResourceType" label="ciscotestgroup" >
<persistenceSelectorStrategy
class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
<storageStrategy
class="org.opennms.netmgt.dao.support.FrameRelayStorageStrategy"/>
</resourceType>
<group name="ciscotestgroup" ifType="all">
<mibObj oid=".1.3.6.1.2.1.2.2.1.10" instance="ifIndex"
alias="ifInOctets" type="counter" />
</group>
<systemDef name="cisco-routers-test">
<sysoidMask>.1.3.6.1.4.1.9.1.</sysoidMask>
<collect>
<includeGroup>ciscotestgroup</includeGroup>
</collect>
</systemDef>
</snmp-collection>
</datacollection-config>
Hello Friends,
I am trying weeks for getting only the required small subset of snmp data
from all interfaces in a cisco router.
Verifying with opennms wiki help little. Still Its not restarting with the
above datacollection-config.xml file.
If i replace with the one below, opennms is starting and working.
I am suspecting resourceType name and group instace variables.[marked in
red]
anybody please tell me what is logically/technically wrong in the above
config file.....
(I replaced ifIndex to testResourceType, but still not working)
Thanks.
<?xml version="1.0"?>
<datacollection-config rrdRepository="/var/lib/opennms/rrd/snmp/">
<snmp-collection name="default" snmpStorageFlag="select">
<rrd step="300">
<rra>RRA:AVERAGE:0.5:1:2016</rra>
<rra>RRA:AVERAGE:0.5:12:1488</rra>
<rra>RRA:AVERAGE:0.5:288:366</rra>
<rra>RRA:MAX:0.5:288:366</rra>
<rra>RRA:MIN:0.5:288:366</rra>
</rrd>
<resourceType name="*frCircuitIfIndex*" label="Frame-Relay Circuit
(RFC1315)">
<persistenceSelectorStrategy
class="org.opennms.netmgt.collectd.PersistAllSelectorStrategy"/>
<storageStrategy
class="org.opennms.netmgt.dao.support.FrameRelayStorageStrategy"/>
</resourceType>
<groups>
<group name="cisco-frame-relay" ifType="all">
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.2.1.1" instance="*
frCircuitIfIndex*" alias="frIfName" type="string" />
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.2.1.2"
instance="frCircuitIfIndex" alias="frIfType" type="string" />
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.2.1.3"
instance="frCircuitIfIndex" alias="frSubifIndex" type="string" />
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.1.1.1"
instance="frCircuitIfIndex" alias="frDEins" type="counter" />
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.1.1.2"
instance="frCircuitIfIndex" alias="frDEouts" type="counter" />
<mibObj oid=".1.3.6.1.4.1.9.9.49.1.2.1.1.3"
instance="frCircuitIfIndex" alias="frDropPktsOuts" type="counter" />
</group>
<group name="rfc1315-frame-relay" ifType="all">
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.1" instance="frCircuitIfIndex"
alias="frIfIndex" type="string" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.2" instance="frCircuitIfIndex"
alias="frDlci" type="string" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.3" instance="frCircuitIfIndex"
alias="frState" type="string" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.4" instance="frCircuitIfIndex"
alias="frReceivedFECNs" type="Counter" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.5" instance="frCircuitIfIndex"
alias="frReceivedBECNs" type="Counter" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.6" instance="frCircuitIfIndex"
alias="frSentFrames" type="Counter" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.7" instance="frCircuitIfIndex"
alias="frSentOctets" type="Counter" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.8" instance="frCircuitIfIndex"
alias="frReceivedFrames" type="Counter" />
<mibObj oid=".1.3.6.1.2.1.10.32.2.1.9" instance="frCircuitIfIndex"
alias="frReceivedOctets" type="Counter" />
</group>
</groups>
<systems>
<systemDef name="Cisco Routers">
<sysoidMask>.1.3.6.1.4.1.9.1.</sysoidMask>
<collect>
<includeGroup>rfc1315-frame-relay</includeGroup>
<includeGroup>cisco-frame-relay</includeGroup>
</collect>
</systemDef>
</systems>
</snmp-collection>
</datacollection-config>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-install mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install