Re: Failed to connect to agentx master agent

"jeff magder" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Glad I was able to help!

Oops, it looks like I responded only to you instead of the list.  :-)

On 9/2/07, [email protected] <[email protected]>
wrote:
>
> Hi,
>
> That was mistakenly written but i actually used,
> /usr/local/sbin/snmpd -c /usr/local/share/snmpd.conf -X tcp:localhost:706
>
>
> But anyhow , i was successfull in running it ,
> the problem was that in the sub agent code i changed the agentx port from
> "localhost:706" to "tcp:localhost:706" and it worked fine
>
>         if (agentx_subagent)
>         {
>                 netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
>                                 NETSNMP_DS_AGENT_ROLE, 1);
>                 /*
>                  * AGENTX_ADDRESS is initialized to default port for
> AgentX.
>                  */
>                 netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
>                                 NETSNMP_DS_AGENT_X_SOCKET,
> "tcp:localhost:706");
>
>
> Br
> Gaurav
>
>
> ----- Original Message -----
> From: Jayaprakasha Guddenahalli Naganna <[email protected]>
> To: [email protected], [email protected],
> [email protected]
> Sent: Fri, 31 Aug 2007 21:04:58 +0530 (IST)
> Subject: RE: Failed to connect to agentx master agent
>
> >>/usr/local/sbin/snmpd -c /usr/local/share/snmpsnmpd.conf -X
> >>tcp:localhost:706
> I think you have given wrong configuration file name "snmpsnmpd.conf".
> Please check the file name.
> Thanks
> -JP
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Wednesday, August 29, 2007 10:50 AM
> To: [email protected];
> [email protected]
> Subject: Failed to connect to agentx master agent
>
> Hello ,
>
> I am running the agent as a Agentx configuration
> snmpd    --- Master Agent
> myAgent --- subAgent
>
> But each time i try to run it i get message "Failed to connect to agentX
> master agent(localhost:706)
>
> Following are the configuration related to agentx in
> /usr/local/share/snmp/snmpd.conf
>
> #########################################
> master                agentx
> AgentXSocket      tcp:localhost:706
> #########################################
>
> I am running the snmpd(master) as
> /usr/local/sbin/snmpd -c /usr/local/share/snmpsnmpd.conf -X
> tcp:localhost:706
>
> In the subagent main() method i have added
>         if (agentx_subagent)
>         {
>                 netsnmp_ds_set_boolean(NETSNMP_DS_APPLICATION_ID,
>                                 NETSNMP_DS_AGENT_ROLE, 1);
>                 /*
>                  * AGENTX_ADDRESS is initialized to default port for
> AgentX.
>                  */
>                 netsnmp_ds_set_string(NETSNMP_DS_APPLICATION_ID,
>                                 NETSNMP_DS_AGENT_X_SOCKET,
> "localhost:706");
>
>                 syslog(LOG_INFO, "Agent starting as AgentX Subagent.");
>         }
>
> But when i run the subagent it gives me error as:
> Warning: Failed  to connect to agentX master agent(localhost:706):
> Warning: Failed  to connect to agentX master agent(localhost:706):
>
> Please could u provide me some hint whats the problem in this case.
>
>
> Thanks
> Gaurav
>
> --
> Guess 1st innings score. Win 1 Lakh* Rupees.
> SMS RUN<Your Score> to 8888.
>
> ------------------------------------------------------------------------
> -
> 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
>
>
> ------------------------------------------------------------------------
> -
> 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-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
>
>
> --
> Guess 1st innings score. Win 1 Lakh* Rupees.
> SMS RUN<Your Score> to 8888.
>
> -------------------------------------------------------------------------
> 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
>

-------------------------------------------------------------------------
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.