|
Greetings, I’m writing an SNMP agent for some MySQL statistics. After
reading the tutorials and looking at the list archives, I’m still a
little confused on a couple of points. I’m hoping some of you can help
clear this up for me. I figured out how to write the MIB file and I’m able
to run mib2c against it and get frame code. Once I complete the code, how do I
make snmpd aware of the agent? Does net-snmp need to be recompiled on Linux to
include the new SNMP agent? Is there any way to dynamically load new agents in
net-snmp? My second point of confusion comes the actual implementation
of the code generated by mib2c. So far, I have only two objects defined in my
MIB starting at .1.3.6.1.2.1.720 : [EMAIL PROTECTED] mysqlstat]# snmptranslate -m +MYSQL-DB-MIB
-On -IR mysqlKeyReadRequests .1.3.6.1.2.1.720.1 [EMAIL PROTECTED] mysqlstat]# snmptranslate -m +MYSQL-DB-MIB
-On -IR mysql .1.3.6.1.2.1.720 (Yes, I’m using OIDs generated ‘at random’,
that will be changed when I get a better picture of what I need to accomplish.) In the c source file generated by mib2c there is one function
init_mysql(void){..}. Does that one function’s implementation need to populate
mysqlKeyReadRequests (and any other sub-OIDS), or should there be a separate function
to initialize mysqlKeyReadRequests (i.e. I messed up the MIB file)? Any advice would be appreciated. John A. |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ 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
