Re: snmpd failed to start when agentx is enabled

Bill Fenner <[email protected]> Thu, 26 Sep 2024 11:44:29 -0700
Newsgroups gmane.network.net-snmp.devel
Message-ID <CAF4SogYRuOepq6R4FtVDc-H=A2secJ4jvg5p6jgN8z+Zk8ib0A@mail.gmail.com>
--===============4506631786671650752==
Content-Type: multipart/alternative; boundary="000000000000991d5006230a2196"

--000000000000991d5006230a2196
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Pushpa,

You are not enabling UNIX domain support, so net-snmp can't open the UNIX
domain socket for agentx. You can either use the TCP socket by configuring
with something like

agentXSocket tcp:127.0.0.1:705

and then configuring clients similarly, e.g., "snmptrap -X tcp:705"

Or adding the UNIX domain transport, e.g., add "Unix" to your
"--with-transports" configure argument.

  Bill


On Thu, Sep 26, 2024 at 9:20=E2=80=AFAM Pushpa Thimmaiah <pushpa.thimmaiah@=
gmail.com>
wrote:

> Hi All,
>
> I am getting following error while starting snmpd in net-snmp-5.9. I have
> enabled  agentx and compiled the source. Kindly guide me to resolve the
> same.
> I have created directory /var/agentx
> ---------------
>
> agentx/master: initializing...
> trace: netsnmp_tdomain_transport_tspec(): snmp_transport.c, 655:
> tdomain: tdomain_transport_spec("agentx", "/var/agentx/master", 1,
> "[NIL]", "[NIL]", "[NIL]")
> trace: netsnmp_tdomain_transport_tspec(): snmp_transport.c, 736:
> tdomain: Address starts with '/', so assume "unix" domain
> trace: find_tdomain(): snmp_transport.c, 610:
> tdomain: Found no domain from specifier "unix"
> No support for any checked transport domain
> Error: Couldn't open a master agentx socket to listen on
> (/var/agentx/master):
> ---------------------------------------------------
>
>
> Thanks,
> Pushpa.T
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>

--000000000000991d5006230a2196
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Pushpa,<div><br></div><div>You are not enabling UNIX do=
main support, so net-snmp can&#39;t open the UNIX domain socket for agentx.=
 You can either use the TCP socket by configuring with something like</div>=
<div><br></div><div>agentXSocket tcp:<a href=3D"http://127.0.0.1:705">127.0=
.0.1:705</a></div><div><br></div><div>and then configuring clients similarl=
y, e.g., &quot;snmptrap -X tcp:705&quot;</div><div><br></div><div>Or adding=
 the UNIX domain transport, e.g., add &quot;Unix&quot; to your &quot;--with=
-transports&quot; configure argument.</div><div><br></div><div>=C2=A0 Bill<=
/div><div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Thu, Sep 26, 2024 at 9:20=E2=80=AFAM Pushpa Thimmaia=
h &lt;<a href=3D"mailto:[email protected]">pushpa.thimmaiah@gmail.=
com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1e=
x"><div dir=3D"ltr"><div>Hi All,</div><div><br></div><div>I am getting foll=
owing error while starting snmpd in net-snmp-5.9. I have enabled=C2=A0 agen=
tx and compiled the source. Kindly guide me to resolve the same.</div><div>=
I have created directory /var/agentx <br></div><div>---------------</div><d=
iv><br>agentx/master: initializing...<br>trace: netsnmp_tdomain_transport_t=
spec(): snmp_transport.c, 655:<br>tdomain: tdomain_transport_spec(&quot;age=
ntx&quot;, &quot;/var/agentx/master&quot;, 1, &quot;[NIL]&quot;, &quot;[NIL=
]&quot;, &quot;[NIL]&quot;)<br>trace: netsnmp_tdomain_transport_tspec(): sn=
mp_transport.c, 736:<br>tdomain: Address starts with &#39;/&#39;, so assume=
 &quot;unix&quot; domain<br>trace: find_tdomain(): snmp_transport.c, 610:<b=
r>tdomain: Found no domain from specifier &quot;unix&quot;<br>No support fo=
r any checked transport domain<br>Error: Couldn&#39;t open a master agentx =
socket to listen on (/var/agentx/master): <br></div><div>------------------=
---------------------------------</div><div><br></div><div><br></div><div>T=
hanks,</div><div>Pushpa.T<br></div></div>
_______________________________________________<br>
Net-snmp-coders mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/net-snmp-coders" re=
l=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/list=
info/net-snmp-coders</a><br>
</blockquote></div>

--000000000000991d5006230a2196--


--===============4506631786671650752==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4506631786671650752==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

--===============4506631786671650752==--