Re: a problem about net-snmp 5-4
"Clement Hsu" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Dave: Thank you. The routine I starting agent is first running as root and then execute the command : /etc/init.d/snmpd start or /usr/local/sbin/snmpd After I testing these two way , I found something. When I start agent via /etc/init.d /snmpd start, the agent can start , but can not sent cold start trap , and the same error which many mib modules can not be got through snmpget command. But , when I perform /usr/local/sbin/snmpd , the agent can start too , and it can work without error. That means the agent can send cold start trap, and many mibs modules can be get , such as hrSystemProcesses . . and so on. I don't know why , do that mean that I can not start agent via init-snmp? But the command in the init-snmp should be the same, why the result is so different? Thank you. Best Regards, Clement Hsu 2006/12/22, Dave Shield <[email protected]>: > > On 21/12/06, Clement Hsu <[email protected]> wrote: > > After performing the command, I got the result as following: > > > read_config: config path used for > > > snmpd:/usr/local/etc/snmp:/usr/local/share/snmp:/usr/local/lib/snmp:/root/.snmp > > (persistent path:/var/net-snmp) > > read_config: Reading configuration /usr/local/share/snmp/snmpd.conf > > read_config: /usr/local/share/snmp/snmpd.conf:1 examining: rwcommunity > public > > [snip] > > OK - so this is picking up the expected config file. > Bother. > > > Error opening specified endpoint "" > > Server Exiting with code 1 > > Ummm... That looks worrying. > If you're starting the agent in the same way as normal > (just with some extra flags), then it should at least be > able to run OK. > > How exactly do you normally start the agent? > What was the exact command you ran this time? > Who are you running as? (A normal user, or root) > > > > > It is more than I can expect, why some files does not exist, should i > > create these files, and how to do that? > > No - don't do that. > The agent has a long list of possible locations for the config files, > but doesn't expect more than one or two of them to exist. > It's reporting each one in turn - but it's perfectly normal for most > of these to be "No such file" > > Concentrate on how you're starting the agent... > > Dave > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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