bugcy013
6/27/2014 - 4:22 PM

How to modify the OpenNMS SNMP data collection interval

How to modify the OpenNMS SNMP data collection interval

Warning: Decreasing the polling interval will increase the demand on system resources and may have a negative performance impact for the entire system.

Perform the following steps to modify the time interval for data collection:

1. On the Junos Space server CLI, open the following file in test editor mode:

/opt/opennms/etc/collectd-configuration.xml
2. Locate the line:

package name="example1"
3. Modify the value:

from

<service name="SNMP" interval="900000" user-defined="false" status="on">

to

<service name="SNMP" interval="300000" user-defined="false" status="on"> -- for 5 minutes

4. Save the file.

5. Stop the openNMS services:

/etc/init.d/opennms stop
6. Navigate to /var/opennms/rrd/snmp/

7. Delete the .jrb files from here by running the command:

find /var/opennms/rrd/snmp/ -name "*.jrb" | xargs rm -f
8. Start the openNMS services:

/etc/init.d/opennms start
This will change the time interval value for data collection.



millisecond to min.
http://www.unitconversion.org/time/milliseconds-to-minutes-conversion.html