Re: snmptrapd executes handler 2 times

This is a discussion on Re: snmptrapd executes handler 2 times within the SNMP Users forums, part of the Networking and Network Related category; Hi Thomas, > Start the snmptrapd with debug to see what config files it reads in. > Make sure it ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-16-2005
Hugo Caçote
 
Posts: n/a
Default Re: snmptrapd executes handler 2 times

Hi Thomas,

> Start the snmptrapd with debug to see what config files it reads in.
> Make sure it doesn't read two of them (each of them listing the perl
> trap handler).



I realy think that snmptrapd is just reading one configuration file
/etc/snmp/snmptrapd.conf as you can see in the output bellow

# snmptrapd -m +ACS-TAPE-MONITOR-MIB -Dread_config -f -Le -c
/etc/snmp/snmptrapd.conf
read_config: reading premib configuration tokens
read_config: config path
used:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
read_config: Reading configuration /etc/snmp/snmptrapd.conf
read_config: /etc/snmp/snmptrapd.conf:1 examining: perl do
"/usr/share/snmp/snmp-trap-sensor.pl"
read_config: /etc/snmp/snmptrapd.local.conf: No such file or directory
read_config: /usr/share/snmp/snmptrapd.conf: No such file or directory
read_config: /usr/share/snmp/snmptrapd.local.conf: No such file or directory
read_config: /usr/lib/snmp/snmptrapd.conf: No such file or directory
read_config: /usr/lib/snmp/snmptrapd.local.conf: No such file or directory
read_config: /root/.snmp/snmptrapd.conf: No such file or directory
read_config: /root/.snmp/snmptrapd.local.conf: No such file or directory
read_config: Reading configuration /var/net-snmp/snmptrapd.conf
read_config: /var/net-snmp/snmptrapd.conf:32 examining: engineBoots 72
read_config: /var/net-snmp/snmptrapd.conf:33 examining: oldEngineID
0x80001f888002a07750c1b83142
read_config: Found a parser. Calling it: oldEngineID /
0x80001f888002a07750c1b83142
read_config: /var/net-snmp/snmptrapd.local.conf: No such file or directory
read_config: config path
used:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
read_config: /etc/snmp/agentx.conf: No such file or directory
read_config: /etc/snmp/agentx.local.conf: No such file or directory
read_config: /usr/share/snmp/agentx.conf: No such file or directory
read_config: /usr/share/snmp/agentx.local.conf: No such file or directory
read_config: /usr/lib/snmp/agentx.conf: No such file or directory
read_config: /usr/lib/snmp/agentx.local.conf: No such file or directory
read_config: /root/.snmp/agentx.conf: No such file or directory
read_config: /root/.snmp/agentx.local.conf: No such file or directory
read_config: /var/net-snmp/agentx.conf: No such file or directory
read_config: /var/net-snmp/agentx.local.conf: No such file or directory
read_config: config path
used:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
read_config: Reading configuration /etc/snmp/snmp.conf
read_config: /etc/snmp/snmp.conf:1 examining: logTimestamp 1
read_config: Found a parser. Calling it: logTimestamp / 1
2005-03-15 17:38:57 read_config: /etc/snmp/snmp.local.conf: No such file
or directory
2005-03-15 17:38:57 read_config: /usr/share/snmp/snmp.conf: No such file
or directory
2005-03-15 17:38:57 read_config: /usr/share/snmp/snmp.local.conf: No
such file or directory
2005-03-15 17:38:57 read_config: /usr/lib/snmp/snmp.conf: No such file
or directory
2005-03-15 17:38:57 read_config: /usr/lib/snmp/snmp.local.conf: No such
file or directory
2005-03-15 17:38:57 read_config: /root/.snmp/snmp.conf: No such file or
directory
2005-03-15 17:38:57 read_config: /root/.snmp/snmp.local.conf: No such
file or directory
2005-03-15 17:38:57 read_config: /var/net-snmp/snmp.conf: No such file
or directory
2005-03-15 17:38:57 read_config: /var/net-snmp/snmp.local.conf: No such
file or directory
2005-03-15 17:38:57 read_config: reading normal configuration tokens
2005-03-15 17:38:57 read_config: config path
used:/etc/snmp:/usr/share/snmp:/usr/lib/snmp:/root/.snmp:/var/net-snmp
2005-03-15 17:38:57 read_config: Reading configuration
/etc/snmp/snmptrapd.conf
2005-03-15 17:38:57 read_config: /etc/snmp/snmptrapd.conf:1 examining:
perl do "/usr/share/snmp/snmp-trap-sensor.pl"
2005-03-15 17:38:57 read_config: Found a parser. Calling it: perl / do
"/usr/share/snmp/snmp-trap-sensor.pl"
2005-03-15 17:38:57 2005-03-15 17:38:57 NET-SNMP version 5.2.1 Started.


Thank you,
H. Caçote
--
Hugo Caçote @ CERN/IT



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:21 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0