Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/foundation' into develop
Browse files Browse the repository at this point in the history
Conflicts:
	integrations/opennms-dns-provisioning-adapter/pom.xml
	integrations/opennms-puppet-provisioning-adapter/pom.xml
	integrations/opennms-reverse-dns-provisioning-adapter/pom.xml
	opennms-assemblies/http-remoting/pom.xml
	opennms-services/src/test/java/org/opennms/netmgt/collectd/HttpCollectorTest.java
  • Loading branch information
Jesse White committed Feb 23, 2015
2 parents 9dc3d6e + 7b0e610 commit dbd7353
Show file tree
Hide file tree
Showing 41 changed files with 228 additions and 25 deletions.
5 changes: 5 additions & 0 deletions core/test-api/db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions core/upgrade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
<groupId>org.opennms</groupId>
<artifactId>opennms-rrd-jrobin</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>junit</groupId>
Expand Down
5 changes: 5 additions & 0 deletions features/juniper-tca-collector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.core.test-api</groupId>
<artifactId>org.opennms.core.test-api.db</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
import org.opennms.netmgt.model.OnmsIpInterface;
import org.opennms.netmgt.model.OnmsNode;
import org.opennms.netmgt.rrd.RrdUtils;
import org.opennms.netmgt.rrd.RrdUtils.StrategyName;
import org.opennms.netmgt.rrd.jrobin.JRobinRrdStrategy;
import org.opennms.netmgt.snmp.SnmpObjId;
import org.opennms.netmgt.snmp.SnmpUtils;
import org.opennms.netmgt.snmp.SnmpValue;
Expand Down Expand Up @@ -144,7 +144,8 @@ public void setUp() throws Exception {

FileUtils.deleteDirectory(new File(TEST_SNMP_DIR));

RrdUtils.setStrategy(RrdUtils.getSpecificStrategy(StrategyName.basicRrdStrategy));
// These tests rely on JRobin to verify the values
RrdUtils.setStrategy(new JRobinRrdStrategy());

OnmsIpInterface iface = null;
OnmsNode testNode = null;
Expand Down Expand Up @@ -257,7 +258,7 @@ public void testCollector() throws Exception {
collectionSet.visit(persister);

// Validate Persisted Data
RrdDb jrb = new RrdDb(TEST_SNMP_DIR + "/1/" + TcaCollectionResource.RESOURCE_TYPE_NAME + "/171.19.37.60/" + TcaCollectionSet.INBOUND_DELAY + ".jrb");
RrdDb jrb = new RrdDb(TEST_SNMP_DIR + "/1/" + TcaCollectionResource.RESOURCE_TYPE_NAME + "/171.19.37.60/" + TcaCollectionSet.INBOUND_DELAY + RrdUtils.getExtension());

// According with the Fixed Step
Assert.assertEquals(1, jrb.getArchive(0).getArcStep());
Expand Down
5 changes: 5 additions & 0 deletions features/poller/remote/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,10 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions features/remote-poller/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ groovy.compiler.output.path=target/classes
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.features</groupId>
<artifactId>org.opennms.features.springframework-security</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions features/reporting/availability/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.tests</groupId>
<artifactId>org.opennms.tests.mock-elements</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions features/springframework-security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.dependencies</groupId>
<artifactId>spring-test-dependencies</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions features/system-report/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<groupId>org.opennms</groupId>
<artifactId>opennms-rrd-jrobin</artifactId>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.opennms.core.test-api</groupId>
Expand Down
5 changes: 5 additions & 0 deletions integration-tests/remote-poller-18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-icmp-jna</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions integrations/opennms-dns-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.tests</groupId>
<artifactId>org.opennms.tests.mock-elements</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions integrations/opennms-link-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions integrations/opennms-puppet-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions integrations/opennms-rancid-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.tests</groupId>
<artifactId>org.opennms.tests.mock-elements</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions integrations/opennms-reverse-dns-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions integrations/opennms-snmp-asset-provisioning-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.core.test-api</groupId>
<artifactId>org.opennms.core.test-api.db</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,10 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions integrations/opennms-vmware/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
Expand Down
5 changes: 5 additions & 0 deletions integrations/opennms-vtdxml-collector-handler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.protocols</groupId>
<artifactId>org.opennms.protocols.xml</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-ackd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.core.test-api</groupId>
<artifactId>org.opennms.core.test-api.db</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-alarms/daemon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.core.test-api</groupId>
<artifactId>org.opennms.core.test-api.db</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-assemblies/http-remoting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@
<artifactId>opennms-icmp-jna</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
Expand Down
5 changes: 5 additions & 0 deletions opennms-correlation/drools-correlation-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrd-api</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-correlation/opennms-correlator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.tests</groupId>
<artifactId>org.opennms.tests.mock-elements</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion opennms-dao/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,16 @@
<groupId>org.opennms.features.collection</groupId>
<artifactId>org.opennms.features.collection.api</artifactId>
</dependency>

<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.dependencies</groupId>
<artifactId>spring-dependencies</artifactId>
Expand Down
18 changes: 18 additions & 0 deletions opennms-install/src/main/java/org/opennms/install/Installer.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ public void install(final String[] argv) throws Exception {

checkIPv6();

/*
* Make sure we can execute the rrdtool binary when the
* JniRrdStrategy is enabled.
*/

boolean using_jni_rrd_strategy = System.getProperty("org.opennms.rrd.strategyClass", "")
.contains("JniRrdStrategy");

if (using_jni_rrd_strategy) {
File rrd_binary = new File(System.getProperty("rrd.binary"));
if (!rrd_binary.canExecute()) {
throw new Exception("Cannot execute the rrdtool binary '" + rrd_binary.getAbsolutePath()
+ "' required by the current RRD strategy. Update the rrd.binary field in opennms.properties appropriately.");
}
}

/*
* make sure we can load the ICMP library before we go any farther
*/
Expand Down Expand Up @@ -397,6 +413,8 @@ public void loadProperties() throws Exception {

loadEtcPropertiesFile("opennms.properties");
loadEtcPropertiesFile("model-importer.properties");
// Used to retrieve 'org.opennms.rrd.strategyClass'
loadEtcPropertiesFile("rrd-configuration.properties");

m_install_servletdir = fetchProperty("install.servlet.dir");
m_import_dir = fetchProperty("importer.requisition.dir");
Expand Down
5 changes: 5 additions & 0 deletions opennms-provision/opennms-detector-datagram/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-mock-simpleserver</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-provision/opennms-detector-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,10 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
5 changes: 5 additions & 0 deletions opennms-provision/opennms-provision-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-test</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions opennms-provision/opennms-provisiond/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
<artifactId>opennms-rrd-jrobin</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms</groupId>
<artifactId>opennms-rrdtool-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opennms.core.test-api</groupId>
<artifactId>org.opennms.core.test-api.db</artifactId>
Expand Down
Loading

0 comments on commit dbd7353

Please sign in to comment.