From: Tim M. D. <ti...@pe...> - 2012-11-16 15:19:36
|
Hello, I am trying to configure a 1 minute SNMP data collection interval for just selected devices. I would like to gather network interface traffic statistics each minute for select routers to get more accurate data on maximum network bandwidth usage. I have searched for previous examples of this (e.g. http://permalink.gmane.org/gmane.network.opennms.general/44951) but all the examples I have found refer to globally changing the SNMP collection interval, not for specific devices. This is tested with with OpenNMS 1.10.6 and Cisco 1900 series routers. Here is my current config: == collectd-configuration.xml I exclude the specified IPs from the default "example1" collectd package and create a new package with 60 second SNMP interval just for the desired IPs, referencing a new SNMP collection. <package name="example1"> <filter>IPADDR != '0.0.0.0'</filter> <include-range begin="1.1.1.1" end="254.254.254.254"/> <include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/> <exclude-range begin="192.168.87.1" end="192.168.87.1"/> <exclude-range begin="172.18.0.3" end="172.18.0.3"/> <service name="SNMP" interval="300000" user-defined="false" status="on"> <parameter key="collection" value="default"/> <parameter key="thresholding-enabled" value="true"/> <parameter key="retries" value="2"/> <parameter key="timeout" value="30000"/> </service> ... <package name="SNMP-60Sec"> <filter>IPADDR != '0.0.0.0'</filter> <!-- <filter>IPADDR == '192.168.87.1' | IPADDR == '172.18.0.3' | IPADDR == '10.32.93.186'</filter> --> <include-range begin="192.168.87.1" end="192.168.87.1"/> <include-range begin="172.18.0.3" end="172.18.0.3"/> <include-range begin="10.32.93.186" end="10.32.93.186"/> <!-- <include-range begin="1.1.1.1" end="254.254.254.254"/> --> <include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff"/> <service name="SNMP-60Sec" interval="60000" user-defined="false" status="on"> <parameter key="collection" value="SNMP-60Sec"/> <parameter key="thresholding-enabled" value="true"/> <parameter key="retries" value="1"/> <parameter key="timeout" value="30000"/> </service> </package> <collector service="SNMP-60Sec" class-name="org.opennms.netmgt.collectd.SnmpCollector"/> == datacollection-config.xml I create a new SNMP collection that is referenced above: ... <snmp-collection name="SNMP-60Sec" snmpStorageFlag="all"> <rrd step="60"> <rra>RRA:AVERAGE:1.0:1:43200</rra> <!-- 30 days of 1 minute samples --> <rra>RRA:AVERAGE:0.5:5:25920</rra> <!-- 90 days of the average from every 5 minute period --> <rra>RRA:AVERAGE:0.5:60:8784</rra> <!-- 366 days of the average from every 1 hour of samples --> <rra>RRA:MAX:0.5:5:25920</rra> <!-- 90 days of the max from every 5 minute period --> <rra>RRA:MAX:0.5:60:8794</rra> <!-- 366 days of the max from every 1 hour of samples --> <rra>RRA:MIN:0.5:60:8784</rra> <!-- 366 days of the min from every 1 hour of samples --> </rrd> <include-collection dataCollectionGroup="MIB2"/> <include-collection dataCollectionGroup="3Com"/> ... <include-collection dataCollectionGroup="Zeus"/> </snmp-collection> == I then delete the node to ensure the .jrd files get re-created. The node interface directories are created (e.g. Gi0_0-708105130ec0) with a "strings.properties" file present but no .jrd files ever get created. If anyone has done this, advice would be much appreciated. Regards, Tim Miller Dyck Waterloo, Ontario, Canada |