RE: Running master agent and subagent not as root

"Joan Landry" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <A9FCB77F97940A418A61FD9BB71E4170A1C77B@dexbe012-6.exch012.intermedia.net>
 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Dave Shield
Sent: Wednesday, July 02, 2008 8:33 AM
To: Joan Landry
Cc: [email protected]
Subject: Re: Running master agent and subagent not as root

2008/7/2 Joan Landry <[email protected]>:
> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.