Re: problem starting snmpd

niepa inter <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dave:
thanks for your quick reply. I am running my application as root. I
would like to run it as a master agent or subagent. At this time it
does not really matter.

Here is what I am getting back:
Warning: no access control information configured.
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the snmpAgent.conf file for this agent.
Error opening specified endpoint ""
 
I am running the example-demon.c program. Looks like this:

.
.
.

  //build tree and init values of variables in it
  init_mibdata();

  /* initialize vacm/usm access control  */
  if (!agentx_subagent) {
      //init_vacm_vars();
      //init_usmUser();
  }

  init_snmp("snmpAgent");

  /* Let's become an snmp master agent */
  if (!agentx_subagent)
    init_master_agent();  /* open the port to listen on (defaults to udp:161) */

  /* In case we recevie a request to stop (kill -TERM or kill -INT) */
  keep_running = 1;
  signal(SIGTERM, stop_server);
  signal(SIGINT, stop_server);

  snmp_log(LOG_INFO,"snmpAgentDemon is up and running.\n");

  /* main loop */
  while(keep_running) {

    agent_check_and_process(0); /* 0 == don't block */

  }
.
.
.


Thanks!
Yan~




________________________________
From: Dave Shield <[email protected]>
To: niepa inter <[email protected]>
Cc: [email protected]
Sent: Tuesday, August 4, 2009 2:48:35 PM
Subject: Re: problem starting snmpd

2009/8/4 niepa inter <[email protected]>:
> I am trying to run a master agent but it's failing and here is what I am
> getting back on the console. What surprise me is that the endpoint between
> the quotes "" has nothing. Localhost is set and 161 port is not in used at
> this time. Any suggestions regarding what I can do ?
>
>> [init_smux] bind failed: Address already in use
>> Error opening specified endpoint " "

How are you starting the agent?
In particular, who are you running the agent as?

That looks suspiciously like the errors produced when
you try to start things as a non-privileged user.
You typically need to start everything as root.

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

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