回覆: Re: net-snmp Sub-Agent Demon tutorial pr oblen
Earnest Pan <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I am sure it's not access control issue.
I can see the objects in enterprises branch.
After executing the
/usr/sbin/snmpd -f -L -Dagentx
Following contents showed:
agentx/subagent: init_subagent sess 080af3c8
[init_smux] bind failed: Permission denied
Turning on AgentX master support.
Note this is still experimental and shouldn't be used
on critical systems.
agentx/master: initializing...
agentx/master: initializing... DONE
Error opening specified endpoint "udp:161"
Server Exiting with code 1
How can I solve it ?
Another problem is
./mysubagent & (root,of course)
$ Error: Failed to connect to the agentx master agent:
Unknown host (No such file or directory)
What does it mean?
Thanks in advance.
--- Robert Story <[email protected]> 說:
> On Wed, 21 Sep 2005 13:48:59 +0800 (CST) Earnest
> wrote:
> EP> According to tutorial,I executd the
> EP> net-snmp-config --compile-subagent
> mysubagent
> EP> nstAgentSubagentObject.c
> EP> and generated the executable
> file,mysubagent.
> EP> I executed ./mysubagent & as root
> EP>
> EP> When I used the snmpget command as
> following,
> EP> snmpget -v2c -c public localhost
> EP> nstAgentSubagentObject.0
>
> Are you sure it isn't access control? Can you see
> objects in the enterprises
> branch?
>
> Also, try running the master agent in the foreground
> with debugging, to see if
> it is talking to the subagent:
>
> snmpd -f -Lo -Dagentx
>
> --
> NOTE: messages sent directly to me, instead of the
> lists, will be deleted
> unless they are requests for paid consulting
> services.
>
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/>
> <irc://irc.freenode.net/#net-snmp>
> Archive:
>
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
>
> You are lost in a twisty maze of little standards,
> all different.
>
>
>
-------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's
> Geronimo App Server.
> Download it for free - -and be entered to win a 42"
> plasma tv or your very
> own Sony(tm)PSP. Click here to play:
> http://sourceforge.net/geronimo.php
> _______________________________________________
> 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
>
___________________________________________________ 郔陔唳 Yahoo!藻撈r籵 7.0 betaㄛ轎愐鋒繚斕湖ㄐ http://messenger.yahoo.com.tw/beta.html
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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