I am running on Ubuntu and using net-snmp to implement my own mib module
(simple scalar module).
static char errors_value[10000];
void init_monitor_snmp_agent(void) {
const oid errors_oid[] = { 1, 3, 6, 1, 4, 1, 8075, 10 };//In this we
dont add the 0 at the end
strcpy(errors_value, "");
netsnmp_register_watched_scalar(
netsnmp_create_handler_registration("open_connections_list",
NULL,
errors_oid, OID_LENGTH(errors_oid),
HANDLER_CAN_RWRITE),
netsnmp_create_watcher_info(&errors_value, MY_MAX_LEN,
ASN_OCTET_STR, WATCHER_MAX_SIZE));
}
This module is for internal use , so both client and snmpd sever under my
resposnsibility.
I wonder if i can define my MIB as OctectString with 10k size.
I saw this [discussion][1] , but i didnt understood the conclusion.
[1]:
http://www.ietf.org/mail-archive/web/isis-wg/old-archive/2002-May/002398.html
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders