On 03/04/2008, Mike Ayers <[EMAIL PROTECTED]> wrote:
>  > read_config:  config dir: /var/net-snmp
>  > read_config: /var/net-snmp/snmp.conf: No such file or directory
>  > read_config: /var/net-snmp/snmp.local.conf: No such file or directory
>  > Error opening specified endpoint ""
>  > Server Exiting with code 1
>
>
>         Why is it looking for /var/net-snmp/snmp.conf and
> var/net-snmp/snmp.local.conf?  That is not default behavior.

Yes it is.
The agent will look for the files:

    snmpd.conf
    snmpd.local.conf
and
    snmp.conf
    snmp.local.conf

in *each* of the directories on the config search path.
Most of these files won't exist, so it doesn't complain about
any missing files.   But the debug output that I had Daniel
enable will chatter away about what it's doing - hence the
messages above.


>    If you're putting createuser and rwuser statements in /usr/local/share
> you don't get users out of the deal.

Yes you do.

>  They must be in /var/net-snmp/snmpd.conf .

The *recommendation* is that the 'createUser' line be in /var/net-snmp
(so that it can be replaced by an equivalent 'usmUser' line when the
persistent file is re-written).    But it works equally well with 'createUser'
in one of the other config files - I use that all the time for agent
development and testing.

The 'rwuser' statement should *not* be in /var/net/snmpd.conf.
The ONLY directives that should be explicitly put in this file are
'createUser' settings.   Otherwise, this file should not be touched.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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

Reply via email to