public static void add(SnmpAgent snmpAgent, String ip)
			throws UnknownHostException, IOException {

		if (activeAgents == 0) {
			t = new Thread(new TrapReceiver());
			t.setDaemon(true);
			t.start();
		}

		snmpAgents.put(ip, snmpAgent);
		activeAgents++;
	}