Re: Setting up (basic) SNMP Masteragent and Subagent support
Aaron Randall <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Wes / Rest of mailing list, I am getting closer to a solution! Here is the current state of play... I am testing with an agentx master and subagent* running on a single server*, and sending traps to another server in the network. My agentx master config file looks like this: *master agentx rocommunity public trap2sink 192.168.1.97 trapcommunity public authtrapenable 1 syslocation vosscluster syscontact [email protected]* and I start it with the extra flags: *SNMPD_FLAGS="-x 127.0.0.1:705 -Ls DAEMON -c /etc/snmp/snmpd-ha.conf -Lf /var/log/snmp-ha.log"* It seems to run fine. I can see in the logs... *Turning on AgentX master support. NET-SNMP version 5.2.1.2* and a quick look at "netstat -an | grep 705" shows... ~ # netstat -an | grep 705 tcp 0 0 127.0.0.1:705 0.0.0.0:* LISTEN and on the snmptrap server (*192.168.1.97*) i see in the logs... *2006-05-10 15:25:50 vsr1 [UDP: [192.168.1.54]:33095]: SNMPv2-MIB::sysUpTime.0 = Timeticks: (17) 0:00:00.17 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::coldStart SNMPv2-MIB::snmpTrapEnterprise.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10* Now when I try to start my subagent, whose logs look like this: *rocommunity public agentXPingInterval 2 syslocation vosscluster syscontact [email protected] proc apache 500 1 proc mymgr 1 disk / 2% disk /data/pgsql 2% load 12 10 8 * the logs for it show... *NET-SNMP version 5.2.1.2 Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory) Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory) Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory) Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory) Error: Failed to connect to the agentx master agent: Unknown host (No such file or directory)* and on and on. Also there is no change to the "netstat -an | grep 705" command. It seems that the subagent is not connecting to the master agent. Any ideas anyone?? Many Thanks, Aaron ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users