Thanks everyone for your initial responses.
I think if I can get the example subagent code working, I could get mine to
as well. Using the -Dagentx flag doesn't produce any additional output on
the example subagent. On the master agent (snmpd) it does print some extra
lines, but nothing new is produced when I run that example subagent. Does
this mean that they are not connecting at all?
Here are the command lines for each:
master:
%sudo snmpd -Le -m+NET-SNMP-TUTORIAL-MIB -M+. -Dverbose -Dagentx -f
localhost
sub:
%sudo ./mysubagent -Le -m+NET-SNMP-TUTORIAL-MIB -M+. -f -Dverbose -Dagentx
Attached are the output from each.
Any thoughts on where I can go from here?
The example subagent came from the wiki tutorial as I mentioned...
http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_Subagent
Best,
Matt
On Mon, Sep 27, 2010 at 2:07 PM, Wes Hardaker <
harda...@users.sourceforge.net> wrote:
> >>>>> On Fri, 24 Sep 2010 16:53:15 -0700, Matt Flanzer <
> mattflan...@gmail.com> said:
>
> MF> Basically, no matter what I've tried I get the response:
> MF> No Such Object available on this agent at this OID
>
> One thing worth doing is running both the subagent and the master agent
> with debugging output. You can do this with the master agent using the
> -Dagentx flag which should show whether it is getting and accepting the
> traffic from the subagent when it tries to connect. If you start the
> subagent and the master agent doesn't produce any output with that flag,
> then something is wrong with where the master and subagent are trying to
> connect over.
>
> (By default, this is /var/agentx/master if you're using a unix based
> machine, which Mac OSX should be doing).
>
> Note that you likely need to run the master and subagent both as root to
> get that to work properly.
> --
> Wes Hardaker
> Cobham Analytic Solutions
>
registered debug token verbose, 1
registered debug token agentx, 1
agentx_register_app_config_handler: registering .conf token for "agentxsocket"
agentx_register_app_config_handler: registering .conf token for "agentxperms"
agentx_register_app_config_handler: registering .conf token for "agentxRetries"
agentx_register_app_config_handler: registering .conf token for "agentxTimeout"
Couldn't find a table entry for the model name MacBookPro6,2
Sensor Data Collection not supported
verbose:snmpNotifyFilterTable:init_snmpNotifyFilterTable: called
verbose:snmpNotifyFilterTable:initialize_table_snmpNotifyFilterTable: called
verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_init_data: called
verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_container_init: called
verbose:ifTable:init_ifTable: called
verbose:ifTable:initialize_table_ifTable: called
verbose:ifTable:ifTable_container_init: called
verbose:ifTable:ifTable_init_data: called
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_rowreq_ctx_init: called
verbose:ifTable:ifTable_indexes_set: called
verbose:ifTable:ifTable_indexes_set_tbl_idx: called
verbose:ifTable:ifTable_index_to_oid: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:ifXTable:initialize_table_ifXTable: called
verbose:ifXTable:ifXTable_init_data: called
verbose:ifXTable:init_ifXTable: called
verbose:ifTable:init_ifTable: called
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:ifXTable:_ifXTable_container_col_restore: processing column 14
verbose:ifXTable:_ifXTable_container_col_restore: processing column 18
verbose:socket:buffer: Original server send buffer is 9216
verbose:socket:buffer: New server send buffer size is smaller than original!
verbose:socket:buffer: Original server receive buffer is 42080
verbose:socket:buffer: New server receive buffer size is smaller than original!
NET-SNMP version 5.4.2.1
verbose:sess_select: timer due in 4.934201 sec
verbose:sess_select: setting timer to 4.934201 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999902 sec
verbose:sess_select: setting timer to 4.999902 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999916 sec
verbose:sess_select: setting timer to 4.999916 sec, clear block (was 0)
verbose:sess_select: timer due *real* soon. 1775 usec
verbose:sess_select: setting timer to 0.1775 sec, clear block (was 0)
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:sess_select: timer due in 4.997401 sec
verbose:sess_select: setting timer to 4.997401 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999918 sec
verbose:sess_select: setting timer to 4.999918 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999916 sec
verbose:sess_select: setting timer to 4.999916 sec, clear block (was 0)
verbose:sess_select: timer due *real* soon. 1094 usec
verbose:sess_select: setting timer to 0.1094 sec, clear block (was 0)
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:sess_select: timer due in 4.998070 sec
verbose:sess_select: setting timer to 4.998070 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999928 sec
verbose:sess_select: setting timer to 4.999928 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999929 sec
verbose:sess_select: setting timer to 4.999929 sec, clear block (was 0)
verbose:sess_select: timer due *real* soon. 628 usec
verbose:sess_select: setting timer to 0.628 sec, clear block (was 0)
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:sess_select: timer due in 4.998672 sec
verbose:sess_select: setting timer to 4.998672 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999916 sec
verbose:sess_select: setting timer to 4.999916 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999922 sec
verbose:sess_select: setting timer to 4.999922 sec, clear block (was 0)
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:sess_select: timer due in 4.999406 sec
verbose:sess_select: setting timer to 4.999406 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999918 sec
verbose:sess_select: setting timer to 4.999918 sec, clear block (was 0)
verbose:sess_select: timer due in 4.999411 sec
verbose:sess_select: setting timer to 4.999411 sec, clear block (was 0)
verbose:ifTable:ifTable_container_load: called
verbose:ifTable:ifTable_cache_load: 8 records
verbose:sess_select: timer due in 4.999949 sec
verbose:sess_select: setting timer to 4.999949 sec, clear block (was 0)
Received TERM or STOP signal... shutting down...
verbose:container: netsnmp_container_simple_free) called for 0x10032e160/0x0
verbose:container: netsnmp_container_simple_free) called for 0x10032e930/0x0
verbose:container: netsnmp_container_simple_free) called for 0x10032ec20/0x0
verbose:container: netsnmp_container_simple_free) called for 0x10032ec40/0x0
verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_container_shutdown: called
verbose:snmpNotifyFilterTable:snmpNotifyFilterTable_container_free: called
verbose:ifTable:ifTable_container_shutdown: called
verbose:ifTable:ifTable_container_free: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
verbose:ifTable:ifTable_rowreq_ctx_cleanup: called
registered debug token verbose, 1
registered debug token agentx, 1
/Users/mattflanzer/.snmp/mysubagent.conf: line 76: Warning: Unknown token:
syslocation.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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/listinfo/net-snmp-users