This is a discussion on Support for include files in snmpd.conf? within the SNMP Users forums, part of the Networking and Network Related category; 2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>: > However, I get a new error now when ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>:
> However, I get a new error now when I try to run the master agent: > agentx/master: initializing... > agentx/master: initializing... DONE > Error opening specified endpoint "" > Server Exiting with code 1 > > Any ideas on what would cause this? What command did you use to start the agent? By default, the agent will attempt to listen on UDP port 161, which it can't do if it's running as a non-root user. If you specify a different (high-numbered) port when you start the agent, then it should be OK. Dave ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
-----Original Message----- From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, July 02, 2008 8:33 AM To: Joan Landry Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Running master agent and subagent not as root 2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>: > However, I get a new error now when I try to run the master agent: > agentx/master: initializing... > agentx/master: initializing... DONE > Error opening specified endpoint "" > Server Exiting with code 1 > > Any ideas on what would cause this? >What command did you use to start the agent? ../snmpd -f -Le >>By default, the agent will attempt to listen on UDP port 161, which it can't do if it's running as a non-root user. >>If you specify a different (high-numbered) port when you start the agent, then it should be OK. I do not know how to do this: I tried: ../snmpd -f -Le -x 22222 But I get the same error. Can you give me an example of how to specify a different port? Also, I am not sure if part of the problem is that because I am not starting it up as root - the program fails because it can not write out the config file to: /var/net-snmp/snmp.conf (as it would not have permissions to do this). My problem is that I need to run the subagent as non root, and I am under the impression that in order to run the subagent as non root the master agent has to also run as non root. Thanks for the help. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>:
>>What command did you use to start the agent? > > ./snmpd -f -Le That will be listening on port 161, which will fail >>> If you specify a different (high-numbered) port when you start the >>> agent, then it should be OK. > > I do not know how to do this: ../snmpd -f -Le 22222 > I tried: > ./snmpd -f -Le -x 22222 No - that specifies the _AgentX_ port (which you're already setting in the config file). The issue here is with the port for _SNMP_ requests. Dave ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
How do I change the port for _SNMP_ requests?
-----Original Message----- From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On Behalf Of Dave Shield Sent: Wednesday, July 02, 2008 9:20 AM To: Joan Landry Cc: net-snmp-users@lists.sourceforge.net Subject: Re: Running master agent and subagent not as root 2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>: >>What command did you use to start the agent? > > ./snmpd -f -Le That will be listening on port 161, which will fail >>> If you specify a different (high-numbered) port when you start the >>> agent, then it should be OK. > > I do not know how to do this: ../snmpd -f -Le 22222 > I tried: > ./snmpd -f -Le -x 22222 No - that specifies the _AgentX_ port (which you're already setting in the config file). The issue here is with the port for _SNMP_ requests. Dave ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
|
|||
|
2008/7/2 Joan Landry <Joan.Landry@overturenetworks.com>:
> How do I change the port for _SNMP_ requests? >> ./snmpd -f -Le 22222 Dave ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|