Re: Small query on snmpd

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
    [ First - *please* don't mail me privately, without copying
     any responses to the mailing list.  I don't have the time
     or inclination to offer private, unpaid, SNMP consultancy.
     Keep discussions to the list, where others can both learn
     and offer advice.  Thanks.   ]



On 06/08/07, Jayanthi Pachaiyappan <[email protected]> wrote:
> I am running the agent by giving the command
>                  snmpd -C -c /usr/local/share/snmp/snmpd.conf.
> It just gets terminated.
> Observation through the process listing <ps -ef does not show snmpd process>
>
> so i tried by giving the
>        snmpd -f -Le -X -C -c /usr/local/share/snmp/snmpd.conf to print the errors.

The '-X' option will run the daemon as an AgentX subagent, connecting to
another SNMP master agent.   If there isn't one, then this will fail...

> net_snmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
> net_snmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
> net_snmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
> /usr/local/share/snmp/snmpd.conf:line 44:Warning:Unknown token:rocommunity
> /usr/local/share/snmp/snmpd.conf:line 49:Warning:Unknown token:rwcommunity
> /usr/local/share/snmp/snmpd.conf:line 74:Warning:Unknown token:master
> warning: failed to connect to agentx master agent ([NIL])
> warning: failed to connect to agentx master agent ([NIL])

... as indeed it does.


The fact that the agent doesn't understand "rocommunity" is worrying as well.
How did you run "configure" ?
   A plain  "./configure ; make ; make install" should build a default agent,
which *would* understand these directives.

So either you're not running the expected version of "snmpd", or it failed
to pick up the standard build environment.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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.