It doesn't happen all the time. Some threads do get stuck, some don't,
following no evident pattern. My understanding was the timeout should
handle this. Was I wrong? Should I use separate timers?

This is Red Hat Enterprise Linux AS release 4 (2.6.9-42.ELsmp) with
net-snmp-libs-5.1.2-11.EL4.7. Should I upgrade Net-SNMP or the
problem might be somewhere else?

Thanks!

Fernando.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
[url]http://moblin-contest.org/redirect.php?banner_id=100&url=/[/url]
_______________________________________________
Net-snmp-users mailing list
[email]Net-snmp-users@lists.sourceforge.net[/email]
Please see the following page to unsubscribe or change other options:
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-users[/url]

10-03-2008, 03:36 PM

unix

is it possible to install agent without root priority?

Hi, there

Is there a way to install net-snmp snmpd and run it by a user other than "root"?
I know that I must specify another listening port, but besides this, what else do I have to do? Thanks!

------------------
ren
2008-10-03

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
[url]http://moblin-contest.org/redirect.php?banner_id=100&url=/[/url]
_______________________________________________
Net-snmp-users mailing list
[email]Net-snmp-users@lists.sourceforge.net[/email]
Please see the following page to unsubscribe or change other options:
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-users[/url]

10-03-2008, 04:52 PM

unix

RE: is it possible to install agent without root priority?

> From: xiao ren [mailto:reign99@21cn.com][color=blue]
> Sent: Friday, October 03, 2008 8:37 AM[/color]
[color=blue]
> Is there a way to install net-snmp snmpd and run it by a user
> other than "root"?
> I know that I must specify another listening port, but
> besides this, what else do I have to do? Thanks![/color]

Make sure that persistentDir points somewhere you have write permissions. That's really all you need to do.

HTH,

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
[url]http://moblin-contest.org/redirect.php?banner_id=100&url=/[/url]
_______________________________________________
Net-snmp-users mailing list
[email]Net-snmp-users@lists.sourceforge.net[/email]
Please see the following page to unsubscribe or change other options:
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-users[/url]

xr> Is there a way to install net-snmp snmpd and run it by a user other
xr> than "root"? I know that I must specify another listening port, but
xr> besides this, what else do I have to do? Thanks!

You can have it run as anyone. The issues with doing so are
that the persistent directory isn't writable (/var/net-snmp/snmpd.conf)
but this can be changed with the SNMP_PERSISTENT_FILE and the
SNMPCONFPATH variable.

The bigger issue is that most OSes don't let you access much of the data
you need in order to be able to implement many of the objects that an
agent reports.

The other thing you can do is start the agent as root, but set the
"agentuser" setting in the snmpd.conf file to have it drop down to the
privileges of a non-root user after it starts.
--
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
[url]http://moblin-contest.org/redirect.php?banner_id=100&url=/[/url]
_______________________________________________
Net-snmp-users mailing list
[email]Net-snmp-users@lists.sourceforge.net[/email]
Please see the following page to unsubscribe or change other options:
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-users[/url]

10-04-2008, 08:41 AM

unix

Re: is it possible to install agent without root priority?

xiao ren wrote:[color=blue]
> Is there a way to install net-snmp snmpd and run it by a user other than "root"?
> I know that I must specify another listening port, but besides this, what else do I have to do? Thanks![/color]

In addition to what Wes and Mike have told you already, you may find the
following snmpd options useful:

-r do not exit if files only accessible to root
cannot be opened
-u UID change to this uid (numeric or textual) after
opening transport endpoints

+Thomas

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
[url]http://moblin-contest.org/redirect.php?banner_id=100&url=/[/url]
_______________________________________________
Net-snmp-users mailing list
[email]Net-snmp-users@lists.sourceforge.net[/email]
Please see the following page to unsubscribe or change other options:
[url]https://lists.sourceforge.net/lists/listinfo/net-snmp-users[/url]