Hi, 

I'm working on Project where we use Net-SNMP, we've wrotten a small
Subagent which informs about our Server status. Some time ago we did
switch from ucd-snmp to Net-SNMP. 
We use our Subagent to send traps througth Net-SNMP. The problem is, at
some time (unknow) wan't the Net-SNMP send no traps more, in logs look
it different somteimes send 300 Traps sometime just 100. In our Agent I
did't found any problem, in log of net-snmp can i see this messages (see
below).
I have no idea what ca it be. Please help, I'm using Net-SNMP 5.2.4 and
5.4 on Linux and Net-SNMP is started with following parameters:

        ./sbin/snmpd -d -LF d /var/log/net-snmpd.log -p
/var/run/snmpd.pid -x /var/agentx/master 

Error which can I see in log of net-snmp:

snmp_build: unknown failuresnmpd: send_trap: Error building ASN.1
representation (Can't build OID for variable)

Sending 300 bytes to Local IPC: /var/agentx/master
0000: 01 12 00 00  06 00 00 00  00 00 00 00  59 3A B5 05
............Y:..
0016: 18 01 00 00  7D B8 0B 00  00 00 00 00  43 00 00 00
....}.......C...
0032: 04 02 00 00  01 00 00 00  01 00 00 00  03 00 00 00
................
0048: 00 00 00 00  7C B8 0B 00  06 00 00 00  06 06 00 00
....|...........
0064: 03 00 00 00  01 00 00 00  01 00 00 00  04 00 00 00
................
0080: 01 00 00 00  00 00 00 00  05 04 01 00  01 00 00 00
................
0096: 88 1F 00 00  04 00 00 00  00 00 00 00  AA 3A 0C 00
.............:..
0112: 04 00 00 00  03 00 00 00  03 00 00 00  01 00 00 00
................
0128: 00 00 00 00  05 00 00 00  4F 35 30 30  41 00 00 00
........O500A...
0144: 04 00 00 00  03 00 00 00  03 00 00 00  02 00 00 00
................
0160: 00 00 00 00  15 00 00 00  4F 35 30 30  41 2E 30 30
........O500A.00
0176: 32 32 2E 30  30 30 31 31  36 30 35 30  33 00 00 00
22.0001160503...
0192: 04 00 00 00  03 00 00 00  03 00 00 00  03 00 00 00
................
0208: 00 00 00 00  0E 00 00 00  43 41 4C 4C  2E 53 4E 4D
........CALL.SNM
0224: 50 2E 54 45  53 54 00 00  04 00 00 00  03 00 00 00
P.TEST..........
0240: 03 00 00 00  04 00 00 00  00 00 00 00  11 00 00 00
................
0256: 45 69 6E 20  53 4E 4D 50  20 54 65 73  74 20 2E 2E    Ein SNMP
Test ..
0272: 2E 00 00 00  02 00 00 00  03 00 00 00  03 00 00 00
................
0288: 08 00 00 00  00 00 00 00  6C 07 00 00                 ........l...

For generating the Trap i'm using following steps (found in some
example): 

        struct variable_list *list=NULL;
        
        ...
        snmp_varlist_add_variable(&list, (oid*)id, oid_length,
ASN_(depends, INTEGER or STRING), (unsigned char*)var.value, var.len);
        ... 
        
        send_trap_vars(SNMP_TRAP_ENTERPRISESPECIFIC, code, list);

        snmp_free_varbind(list);

Thanks, peter

PS: any input is welcome


UC4 Software GmbH, Hauptstrasse 3C, 3012 Wolfsgraben 
Firmenbuchnummer/Commercial Register No. 63566f Firmenbuchgericht/Commercial 
Register Court: Landesgericht St. Poelten
This email (including any attachments) may contain information which is 
privileged, confidential, or protected. If you are not the intended recipient, 
note that any disclosure, copying, distribution, or use of the contents of this 
message and attached files is prohibited. If you have received this email in 
error, please notify the sender and delete this email and any attached files.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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

Reply via email to