|
Hi all,
Hi all,
Same problem than Sten Olsson (posted on 2003-03-19 16:20:12 PST ) with net-snmp 5.0.1 on RedHat 8... send_enterprise_trap_vars overwrites my enterprise and adds two varbinds. It is called from an agentx subagent, and works well when I use the snmptrap command.
Here's what my code looks like:
oid enterprise_oid[] = { 1,3,6,1,4,1,3636}; oid var_oid[] = { 1,3,6,1,4,1,3636,1,11,1,3}; struct variable_list var; var.name = var_oid; var.name_length = 11; var.type = ASN_OCTET_STR; var.val.string = (u_char *)"hello !"; var.val_len = strlen(var.val.string); var.next_variable = NULL;
send_enterprise_trap_vars(6, 11, enterprise_oid, 7, &var);
What am I doing wrong ?
Thanks
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail
|