Re: trap callback transport

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
> --- Thomas Anders wrote ---
> From: Thomas Anders <[email protected]>
> Date: Thu, 22 Dec 2005 15:49:13 +0100
> 
> [email protected] wrote:
> > I am about finding a way for the net-snmp-agent(snmpd) to poll a value
> using
> > a specific polling-rate. To do this i checked out the
> > examples/notification.c and implemented my new file (SysSessionActive.c)
> the
> > same way as shown in the notification.c file. It compiled cleanly but if
> i
> > start the snmpd on the target-hardware following message appears:
> > 
> > "mteTriggerTable has been disable because the callback transport is not
> > available."
> > 
> > When the polltime expired following messages are repeately(pollrate)
> printed
> > on the terminal: 
> > 
> > "snmpd: send_trap: Error building ASN.1 representation"
> 
> Have you tried to do the same on a *local* machine instead of the target 
> hardware to rule out cross-compilation issues?
> 
> Also, are you using one of the latest releases (5.2.2 or 5.3.rc2)?
> 
> 
> +Thomas
> 
> -- 

Thx for your suggestions, i am using net-snmp-5.2.1.2.
However i have fixed the problem - it was actually located in my code: The
wrong ASN-Type was passed by the function snmp_varlist_add_variable. I
should have used ASN_OCTET_STR instead of ASN_OBJECT_ID. 

Bernhard

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.