Okay, adding to my own message, I have further details, but still no
answer.  The snmptrapd program is definitely communicating as a subagent
with the snmpd agentx master and definitely receiving traps, however,
snmptrapd is reporting "variable has bad type" every time it tries to
stash anything in the nlmLogTable.  For instance:

snmptrap -v2c -c public localhost "" coldStart.0

generates a response in the snmptrapd log that includes:
(snip...)
log_notification: adding a row to the variable table
build_oid_noalloc: generated .7.100.101.102.97.117.108.116.1.1
table_data_add_data: added something...

Then the snmpwalk -v2c -c public-traps localhost nlmLog results in the
snmptrapd log showing:

NOTIFICATION-LOG-MIB::nlmLogTable = Variable has bad type

snmptrapd is also trying to do a lot of v3 authentication (even though I
am using v2c) for agentx messages from the snmpd master and reporting
"variable has bad type" for all the usm* variables.  Does this matter?

If any of this makes any sense to anyone, please let me know!
Thanks,
Allison

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Roberts, Allison R.
Sent: Tuesday, December 13, 2005 9:55 AM
To: net-snmp-users@lists.sourceforge.net
Subject: No variables in the NOTIFICATION-LOG-MIB

Greetings,
  I am looking for some insight into using the NOTIFICATION-LOG-MIB.  I
followed the context setup directions at
http://www.freesnmp.com/net-snmp/faqs/, but I am still not seeing any
traps register in the mib.  I am running snmpd as the master agent and I
verified that the "public-traps" community is being registered and that
snmptrapd is working as a subagent by dumping everything to error logs
with "snmpd -DALL -Lf./snmpd.out".

Here's the relevant part of my snmpd.conf setup:
com2sec -Cn snmptrapd trap_sec default public-traps
group trap_grp v1 trap_sec     
group trap_grp v2c trap_sec    
view all_view included .1 80  
access trap_grp snmptrapd any noauth exact all_view none none   

1) Does the context setup need to be performed in snmptrapd.conf (in
addition to snmpd.conf)?

2) When sending the trap, should the "public-traps" community be used?
I have tried to send the traps with every community string I have, with
no luck.

3) Anything else I might be missing?!

Any hints would be greatly appreciated. Thanks!
Allison

---------------------------------------
> snmpd -DALL -Lf./snmpd.out
> snmptrapd -f -Le &

2005-12-13 09:04:52 NET-SNMP version 5.2.1 Started.

 

> snmpwalk -v2c -c public-traps localhost nlmLog   

NOTIFICATION-LOG-MIB::nlmLog = No more variables left in this MIB View
(It is past the end of the MIB tree)


> snmptrap -v2c -c public-traps localhost "" UCD-SNMP-MIB::ucdStart


2005-12-13 09:04:58 boeing2linux [UDP: [127.0.0.1]:32769]:

SNMPv2-MIB::sysUpTime.0 = Timeticks: (57622) 0:09:36.22
SNMPv2-MIB::snmpTrapOID 0 = OID: UCD-SNMP-MIB::ucdStart


> snmpwalk -v2c -c public-traps localhost nlmLog   

NOTIFICATION-LOG-MIB::nlmLog = No more variables left in this MIB View
(It is past the end of the MIB tree)


---------
Allison Roberts
Southwest Research Institute
[EMAIL PROTECTED]




-------------------------------------------------------
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_idv37&alloc_id865&opclick
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


-------------------------------------------------------
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_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to