Hi:
I have an AgentX subagent called ms_agent that reads
some configuration parameters from 'ms_agent.conf.
This has been working on my machine (gcc 2.95) but
after I downloaded, installed net-snmp and compiled my
sub-agent on another machine (gcc version 4.0) and run
it again, it is not reading
[EMAIL PROTECTED]
wrote:
On Thu, 30 Mar 2006 16:17:27 -0800 (PST),
Steve S. Law [EMAIL PROTECTED] said:
Steve I have create a new thread in each of those
processes
Steve to respond to the SNMP request.
1) the net-snmp stack is not thread safe from the
agent perspective.
This likely won't
Hi all:
I am having problems with not getting data from Agent
X master agent (snmpd). It is related to timeout and I
am not sure what to do or where to start.
I have a sub-agent which I developed to monitor my
application which consists of a set of software
processes. I have instrummented my
Hi:
I am using net-snmp 5.2.1. I have implementedd
sub-agent talking to snmpd daemon (master agent) via
agentX protocol. I have my own MIB module, a table
with several columns. My sub-agent is gathering data
from another application.
Some of the columns (data items I) takes some time to
get. If I
);
}
setup_log(0, /* 1=Don't zero log, instead
append to it */
0, /* stderr_log */
/var/log/subagent.log); /*
*/
The subagent will log to subagent.log.
Anand
Steve S. Law wrote:
In my sub-agent program, I have
#include net-snmp/agent/net-snmp-agent-includes.h
Also define
netsnmp_log_handler *logh;
in your C program.
Anand
Steve S. Law wrote:
Hi,
Thanks for the info. I added the lines to my
sub-agent
code but it won't compile (error is: undeclared
SUBAGENT-LOGFILE). If I commented out
In my sub-agent program, I have snmp_enable_calllog()
and
several snmp_log()calls but nothing is being logged in
/var/log/snmpd.log file (default?). I thought
snmpd.log is only for AgentX master agent and not for
sub-agent? Or even sub-agent will be logged to the
same file also? Clearly, I don't
Hi,
So far I have been using printf statements in my
sub-agent. I want to log them into a file instead, so
in the sub-agent main program, I set 'syslog' to 1
which invokes snmp_enable_callog(). However, when I
run it, I don't see any thing on the screean but I
don't know where and if anything is
Hi,
I have a sub-agent that NEEDs to read some
configurable parameters specific to my application.
(1) Where do I put those paramters?
In my sub-agent main program, I have
init_subagent(my-agent);
init_snmp(my-agent);
I look at auto-generated /var/net/my-agent.conf
file, but it says do not
--- Dave Shield [EMAIL PROTECTED] wrote:
On Tue, 2005-06-21 at 02:01, Steve S. Law wrote:
In my init_applTable(), after
netsnmp_register_table_iterator, I did:
snmp_register_callback(SNMP_CALLBACK_LIBRARY,
SNMP_CALLBACK_STORE_DATA
callback, those
entries were gone.
All the colums in my MIB table are read-only but I do
need to persist them across restart.
Please help...
Thanks
Steve
--- Dave Shield [EMAIL PROTECTED] wrote:
On Wed, 2005-05-25 at 01:15, Steve S. Law wrote:
Can you point me to what those APIs
--- Dave Shield [EMAIL PROTECTED] wrote:
On Wed, 2005-06-15 at 19:12, Steve S. Law wrote:
How do the iterator 'get_{first,next}' hook
routines
obtain the list of entries to work with?
Do you have an internal list, or something
similar?
How is this generated?
Iterator
--- Dave Shield [EMAIL PROTECTED] wrote:
On Wed, 2005-06-15 at 03:16, Steve S. Law wrote:
My MIB
is a
table generated by mib2c tool using iterate.conf.
One
row in the table corresponds to one application
process being monitored.
How do
Hi
I am developing an agentX sub-agent which monitors
rfc2788-based variables from other application
processes. The sub-agent sends requests to and
receives results from those processs. My MIB is a
table generated by mib2c tool using iterate.conf. One
row in the table corresponds to one
, truncated or
new data appended to old saved data?
Thanks
Steve
--- Dave Shield [EMAIL PROTECTED] wrote:
On Wed, 2005-05-25 at 01:15, Steve S. Law wrote:
Can you point me to what those APIs are?
Anything that make things easier will be helpful.
Have a look at some of the existing MIB
Can you point me to what those APIs are?
Anything that make things easier will be helpful.
Thanks
Steve
--- Wes Hardaker [EMAIL PROTECTED]
wrote:
On Tue, 24 May 2005 12:08:24 -0700 (PDT),
Steve S. Law [EMAIL PROTECTED] said:
Steve I would like to confirm that if I need to
persist data
handlers, it is working OK
now...
Thanks a lot for your help.
Steve
--- Dave Shield [EMAIL PROTECTED] wrote:
On Tue, 2005-05-10 at 18:43, Steve S. Law wrote:
Try walking the
NET-SNMP-AGENT-MIB::nsModuleTable.
Check that the mtaTable *is* registered (and
this
looks sensible).
After
--- Dave Shield [EMAIL PROTECTED] wrote:
On Mon, 2005-05-09 at 18:20, Steve S. Law wrote:
Actually, I did issue the GET request for one of
the
columns (mtaTransmittedMessages - column number 3)
in
mtaTable, row # 1:
snmpget -c frontbridge localhost
mtaTable.mtaEntry.3.1
Hi,
I have implemented a sub-agent program which registers
two table handlers for two differrent standard MIB
tables (applTable from NETWORK-SERVICES MIB and
mtaTable from MTA MIB). When I issue snmpget for data
in applTable, I get the result OK but whenever I issue
snmpget for mtaTable, I
Hi,
I am new to SNMP and this is my first SNMP project: to
make my application SNMP-enabled. Lets refer to my
application as MYAPP for discussion. MYAPP basically
consists of various/different applications all running
on the same node. All the parameters to be monitored
for all these applications
20 matches
Mail list logo