Skip to content

Commit

Permalink
Create an interface with a different service, the database populator …
Browse files Browse the repository at this point in the history
…already

creates one for SNMP on 192.168.1.1.
  • Loading branch information
Jesse White committed Mar 11, 2015
1 parent 3128f44 commit 207f221
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -89,7 +89,7 @@ public void onPopulate(DatabasePopulator populator, ApplicationDao dao) {
dao.save(application);

// get the SNMP service from node 1 and assign the application to it
final OnmsMonitoredService svc = populator.getMonitoredServiceDao().get(populator.getNode1().getId(), InetAddressUtils.addr("192.168.1.1"), "SNMP");
final OnmsMonitoredService svc = populator.getMonitoredServiceDao().get(populator.getNode1().getId(), InetAddressUtils.addr("192.168.1.2"), "HTTP");
svc.addApplication(application);
application.addMonitoredService(svc);
populator.getMonitoredServiceDao().saveOrUpdate(svc);
Expand Down

0 comments on commit 207f221

Please sign in to comment.