[AGENT++] Notifications won't work

Frank Fock fock at agentpp.com
Tue Jan 9 23:45:14 CET 2007


Hi Markus,

The log message says it: the coldStart OID is *not*
in a notification view for the security name on
whose behalf the agent tries to sent the notification.

To fix this, include the coldStart OID in the notifyView
of the USM user (or community) that sends the notification.

Best regards,
Frank

Markus Schmidleitner wrote:
> 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
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list