Support for include files in snmpd.conf?

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 07-02-2008
Dave Shield
 
Posts: n/a
Default 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?

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

Reply With Quote
  #12 (permalink)  
Old 07-02-2008
Joan Landry
 
Posts: n/a
Default RE: Running master agent and subagent not as root



-----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

Reply With Quote
  #13 (permalink)  
Old 07-02-2008
Dave Shield
 
Posts: n/a
Default 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

Reply With Quote
  #14 (permalink)  
Old 07-02-2008
Joan Landry
 
Posts: n/a
Default RE: Running master agent and subagent not as root

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

Reply With Quote
  #15 (permalink)  
Old 07-02-2008
Dave Shield
 
Posts: n/a
Default Re: Running master agent and subagent not as root

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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:03 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0