Sending SNMPv1 Traps

Frank.Fock____t-online.de Frank.Fock____t-online.de
Fri May 4 11:35:00 CEST 2001


Hello Thomas,

You will have to add snmp_notification_mib and
snmp_target_mib to your Mib instance first.

Regards,
Frank

>
> Hello,
> 
> I have a problem with sending SNMPv1 traps. I looked at the example 
code and
> took it to my code :
>     Vbx* vbs = 0;
> cout << "1" << endl;
>     coldStartOid coldOid;
> cout << "2" << endl;
>     NotificationOriginator no;
> cout << "3" << endl;
>     UdpAddress dest("127.0.0.1/162");
> cout << "4" << endl;
>     no.add_v1_trap_destination(dest);
> cout << "5" << endl;
>     no.generate(vbs, 0, coldOid, "", "");
> cout << "6" << endl;
> 
> and I always get a segmentation fault at 
no.add_v1_trap_destination(dest);
> I don't know why.
> I'm working on Linux with agent++3.4.4a and snmp++v3.0.1
> Can anybody help me ?
> 
> regards
> 
> Thomas
> 
> Thomas Scheuermann
> Software Design Engineer
> BARCO CONTROL ROOMS GMBH
> Phone: (49) (721) 6201-168
> Fax: (49) (721) 6201-190
> mailto:thomas.scheuermann at barco.com  
> http://www.barco.com
> 
> 
> 




More information about the AGENTPP mailing list