[AGENT++] How to add trap severity in V2c
Rajesh Bansal
bansal.rajeshkr at gmail.com
Fri Jan 22 16:39:54 CET 2010
Hi Friends,
I am sending trap by using following code .
CAn you tell me how to add severity level in trap send by agentpp.
FOllowing is my code.
NotificationOriginator no;
no.add_v2_trap_destination(dest, "v2trap", "v2trap", "public");
Oidx o1(oid_string);
Oidx noti(oid_not_string);
SnmpInt32 s1=value;
Vbx* v1 = new Vbx[2];
v1[0].set_oid(o1);
v1[0].set_value(s1);
sprintf(oid_string,"%s.%d.2.0",defaultOidNo,sys_no);
v1[1].set_oid(oid_string);
v1[1].set_value(IpAddress(ip));
//v1[1] = Vbx(o1,s1);
mibr->notify("",noti,v1,2);
Plese help me .
Best Regards,
Rajesh Bansal
More information about the AGENTPP
mailing list