I have setup the SNMP Agent using UDP before and it works fine. However, yesterday I tried setting it up for TCP and I got a bunch of the following error, basically for every object sending a trap:
at com.adventnet.utils.agent.AgentTableModel.addRow(AgentTableModel.java:323) at com.adventnet.snmp.snmp2.agent.NotificationVarbindTableRequestHandler.addRow(NotificationVarbindTableRequestHandler.java:658) at com.adventnet.snmp.snmp2.agent.NotificationVarbindTableRequestHandler.setTrapVarBindDetails(NotificationVarbindTableRequestHandler.java:646) at com.adventnet.snmp.snmp2.agent.SnmpTrapService.sendTrap(SnmpTrapService.java:505) at com.adventnet.snmp.snmp2.agent.SnmpTrapService.sendTrap(SnmpTrapService.java:1402) at com.adventnet.snmp.snmp2.agent.BaseSnmpTrapService.sendTrapToManagersInTable(BaseSnmpTrapService.java:803) at com.adventnet.snmp.snmp2.agent.SnmpTrapService.sendTrapToManagersInTable(SnmpTrapService.java:704) at com.adventnet.snmp.snmp2.agent.BaseSnmpTrapService.sendTrapToManagers(BaseSnmpTrapService.java:849) at com.adventnet.snmp.snmp2.agent.SnmpTrapService.addTrapRequest(SnmpTrapService.java:277) at com.adventnet.snmp.snmp2.agent.BaseSnmpTrapService.sendTrap(BaseSnmpTrapService.java:738) at snmp.AdventNetSnmpAgentTrap.sendNotification(AdventNetSnmpAgentTrap.java:186) ...
Do you have any insights on what could be causing it?
I am having problems with the configuration of the SNMP Agent. Whenever I set the debug level to "Disabled" (0) or the protocol to "TCP/IP", I get the following error for each: (included is the agent.log file, renamed agent.txt)
SNMP: ERROR: Exception while parsing the configuration file at line number : 4Value "0" is not one of the enumerated values for this attribute.
SNMP: ERROR: Exception while parsing the configuration file at line number : 4Value "TCP/IP" is not one of the enumerated values for this attribute.
I only get the errors for these values; when the debug level is set to anything else (from 1 to 6) there is no error, and when UDP is selected for protocol, there is no error either.
I am using version 6 of the Agent toolkit. I have also attached my XML configuration file for reference.
I also know my agent is running because I've been able to to do a GET using the MIB browser, so my question would be what is causing those error logs and what can I do to remedy to them?