[AGENT++] Notifications won't work

Markus Schmidleitner markus.schmidleitner at ocilion.com
Mon Jan 8 09:45:14 CET 2007


Hi all!

I want to send a simple cold-start-notification from my snmp-agent.

But whenever I send a notification I get following message:
(2)EVENT  : Notification not sent (reason) (addr) (params): (no access),
(  C0 A8 A1 DC 00 A2                                  ......
   64 20070105.120342.010 A9 ), (defaultV1Trap)

Following code is used to for sending notification:
    coldStartOid coldOid;
    UdpAddress mydest("192.168.161.220/162");
    no_ = new NotificationOriginator();
 
no_->set_local_engine_id(requestList_->get_v3mp()->get_local_engine_id()
);
    baseMib_->set_notification_sender(no_);
    no_->add_v1_trap_destination(mydest);
    no_->add_v2_trap_destination(mydest);
    no_->add_v3_trap_destination(mydest);
    baseMib_->notify("", coldOid, NULL, 0);

I also tried to use 
    no_->generate(NULL, 0, coldOid, "", "");
and
    no_->notify("", coldOid, NULL, 0);
but this results in same error!

Hope anyone can help!
Thanks in advance!

Best regards,
Markus Schmidleitner

__________________________________________________________________________________
Dieses Mail wurde vom Infotech SecureMail Service ueberprueft und fuer sicher befunden.
Fuer weitere Informationen zu Infotech SecureMail Service waehlen Sie bitte: www.infotech.at

This email has been scanned by Infotech SecureMail Service and it has been classified as secure.
For more information on Infotech SecureMail direct your web browser to: www.infotech.at




More information about the AGENTPP mailing list