RE: Need help in runing AgentX with a different socket address

This is a discussion on RE: Need help in runing AgentX with a different socket address within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1301354608== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-15-2007
 
Posts: n/a
Default RE: Need help in runing AgentX with a different socket address

This is a multi-part message in MIME format.

--===============1301354608==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C8273D.E932FB75"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8273D.E932FB75
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


=20


Hi All,
I am trying to run Agentx(subagent) with a different socket
address , I modify the snmpd.conf by placing " agentxsocket=20
localhost:705 " after "master agentx"

and added to the "subagent.c" file to indicate the subagent should
use port 705:
" netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
NETSNMP_DS_AGENT_X_SOCKET,
"localhost:705");"
[Rajendra] Try this tcp:localhost:705.This should work. Use the same =
format in master snmpd.cond file also Hope this helps you.
So the snmpd is running well but the Subagent is not running

Subagent resutl is given below:
Warning: Failed to connect to the agentx master agent (localhost:705):=20
example-demon is up and running.
Warning: Failed to connect to the agentx master agent (localhost:705):

why this error is comming ..i didn't understand... ****** any
help will be appreciated ********=20



------_=_NextPart_001_01C8273D.E932FB75
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV dir=3Dltr align=3Dright><FONT =
color=3D#800080></FONT><BR>&nbsp;</DIV>=0A=
<H1 class=3DYfMhcb style=3D"FONT-WEIGHT: normal"><FONT size=3D2><SPAN =
id=3D1eqn><BR>Hi All,<BR>&nbsp;&nbsp;&nbsp; I am trying to run =
Agentx(subagent) with a different socket<BR>address , I modify the =
snmpd.conf by placing " agentxsocket <BR>localhost:705 " after "master =
agentx"<BR><BR>and&nbsp; added to the "subagent.c" file to indicate the =
subagent should<BR>use port 705:<BR>&nbsp;" =
netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,<B R>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; =
NETSNMP_DS_AGENT_X_SOCKET,<BR>"localhost:705");"<B R><FONT =
color=3D#000080>[Rajendra] Try this tcp:localhost:705.This should work. =
Use the same format in master snmpd.cond file also Hope this helps =
you.</FONT><BR>So the snmpd is running well but the Subagent is not =
running<BR><BR>Subagent resutl is given below:<BR>Warning: Failed to =
connect to the agentx master agent (localhost:705): <BR>example-demon is =
up and running.<BR>Warning: Failed to connect to the agentx master agent =
(localhost:705):<BR><BR>why this error is comming ..i didn't =
understand...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp; =
******&nbsp; any<BR>help will be appreciated ******** =
<BR></SPAN></FONT></H1></BODY></HTML>
------_=_NextPart_001_01C8273D.E932FB75--


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

-------------------------------------------------------------------------
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/
--===============1301354608==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users

--===============1301354608==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0