>>>>> On Tue, 23 Mar 2010 16:06:19 +0100, "Schaatsbergen, Chris"
>>>>> <[email protected]> said:
CS> format1 '%y-%m-%l ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' format2 '%y-%m-%l
CS> ?%h:%j:%k ?%b ?%P ?%N ?%W ?%v\n' authCommunity log Cisco logOption f
CS> /var/run/snmp-traps
CS> But I tried loads of different settings for the formats already.
WH> 1) Did you set the formatting for the SNMPv2 traps too? IE, are you
sure you're getting SNMPv1 traps in the first place?
WH> 2) Make sure your config file is being read. Run snmptrapd with "-f -Le
-Dread_config" to see what it's doing.
Greetings Wes,
Thanks for your reply.
I thought that was what the format2 was for? It is also in my original request,
but I am very certain I get both SNMPv1 and SNMPv2 traps and neither work. Here
is an excerpt of the config_read:
read_config: reading normal configuration tokens
read_config: config path used for
snmptrapd:/etc/snmp:/usr/share/snmp:/usr/lib/
snmp:/root/.snmp (persistent
path:/var/lib/snmp)
read_config: config dir: /etc/snmp
read_config: Reading configuration /etc/snmp/snmptrapd.conf
read_config: /etc/snmp/snmptrapd.conf:19 examining: format1 %V\n% Agent
Address:
%A \n Agent Hostname: %B \n Date: %H - %J - %K - %L - %M - %Y \n
Enterprise OID
: %N \n Trap Type: %W \n Trap Sub-Type: %q \n Community/Infosec
Context: %P \n U
ptime: %T \n Description: %W \n PDU Attribute/Value Pair
Array:\n%v \n ---------
----- \n
read_config: Found a parser. Calling it: format1 / %V\n% Agent Address: %A \n
A
gent Hostname: %B \n Date: %H - %J - %K - %L - %M - %Y \n Enterprise OID: %N \n
Trap Type: %W \n Trap Sub-Type: %q \n Community/Infosec Context: %P \n Uptime:
%
T \n Description: %W \n PDU Attribute/Value Pair Array:\n%v \n -------------- \n
read_config: /etc/snmp/snmptrapd.conf:20 examining: format2 %V\n% Agent
Address:
%A \n Agent Hostname: %B \n Date: %H - %J - %K - %L - %M - %Y \n
Enterprise OID
: %N \n Trap Type: %W \n Trap Sub-Type: %q \n Community/Infosec
Context: %P \n U
ptime: %T \n Description: %W \n PDU Attribute/Value Pair
Array:\n%v \n ---------
----- \n
read_config: Found a parser. Calling it: format2 / %V\n% Agent Address: %A \n
A
gent Hostname: %B \n Date: %H - %J - %K - %L - %M - %Y \n Enterprise OID: %N \n
Trap Type: %W \n Trap Sub-Type: %q \n Community/Infosec Context: %P \n Uptime:
%
T \n Description: %W \n PDU Attribute/Value Pair Array:\n%v \n -------------- \n
read_config: /etc/snmp/snmptrapd.conf:21 examining: authCommunity log Cisco
read_config: Found a parser. Calling it: authCommunity / log Cisco
read_config: /etc/snmp/snmptrapd.conf:22 examining: logOption s 1
read_config: Found a parser. Calling it: logOption / s 1
read_config: /etc/snmp/snmptrapd.conf:23 examining: logOption f
/var/run/snmp-tr
aps
read_config: Found a parser. Calling it: logOption / f /var/run/snmp-traps
read_config: /etc/snmp/snmptrapd.local.conf: No such file or directory
I cannot see any error messages or such in there. As I mentioned, I have tried
different formatting options, even very basic ones but nothing seems to work.
Thanks again,
Chris Schaatsbergen
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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