Code for multiple subagents each providing one row of a table

This is a discussion on Code for multiple subagents each providing one row of a table within the SNMP Users forums, part of the Networking and Network Related category; I am a Net-SNMP rookie, I hope someone can point me in the right direction. Short version: I have ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-03-2007
Pete Gillin
 
Posts: n/a
Default Code for multiple subagents each providing one row of a table

I am a Net-SNMP rookie, I hope someone can point me in the right
direction.

Short version: I have a MIB which describes a table, and I want a
number of subagents on the machine to each provide one row of that
table. When we send requests to snmpd to walk the table, it should
communicate with each subagent and pull the rows into a table. Is that
possible? What functions should I be looking at? Is there a mib2c
configuration which will provide stub code for my subagents?

Here's some background...

I am integrating SNMP subagent capability into an existing custom
server, to provide certain custom metrics.

In my first trial, the MIB specifies scalars such as
myEnterprise.myQueryServer.metrics.dataStoreSize, and the subagent does
netsnmp_register_scalar with an appropriate callback. (This code is
developed from stubs generated by mib2c with mib2c.scalar.conf.) This
works fine, with snmpwalk showing the correct value for the scalar
myEnterprise.myQueryServe.metrics.dataStoreSize.0.

However, we sometimes have multiple instances of the same type of
server running on the same machine. The above is obviously no good
now. Instead, we want a MIB which specifies a table such as
myEnterpirse.myQueryServer.table, with one row for each instance. Then
the metrics for the Nth instance on this machine would be entries such
as myEnterprise.myQueryServer.table.metrics.dataStore Size.N. I'm
having difficulty finding out how to register the subagent callbacks
correctly.

Thanks a lot for any help,

Pete.

-------------------------------------------------------------------------
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
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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 06:06 AM.


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