Discussion:
[Nagios-users] how to configure snmp 5.3 that snmptrap are received ?
Armin Irger
2006-07-19 10:24:02 UTC
Permalink
Hello,

my nagios 2.4 runs well, now i want the the nagios server received snmptraps and send it to snmptt.
The snmpd.conf looks like
---
com2sec local localhost public
com2sec mynetwork 141.60.120.0/24 public

group RWGroup v1 local
group RWGroup v2c local
group RWGroup usm local
group ROGroup v1 mynetwork
group ROGroup v2c mynetwork
group ROGroup usm mynetwork

view all included .1

access ROGroup "" any noauth exact all none none
access RWGroup "" any noauth exact all all none

syslocation HERE
syscontact ***@localhost

authtrapenable 1
trapcommunity public
trapsink localhost
trap2sink localhost
---

If i send a trap like
#snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"

only in the /var/log/net-snmptrap.log appears

No access configuration - dropping trap.

:-(

I have no clue how to setup the access control.
With the information on www.net-snmp.org i can't get it run :-(

If i try to google for a snmpd.conf version 5.3 for receiving traps i got no usable results.

Please help me.

The normal snmp plugins from nagios works with this settings, only the traps make problems.

Greetings
Armin Irger

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
Thomas Sluyter
2006-07-19 11:04:21 UTC
Permalink
---
<contents of snmpd.conf>
---
If i send a trap like
#snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"
only in the /var/log/net-snmptrap.log appears
No access configuration - dropping trap.
Your current setup of snmpd.conf allows the local SNMP daemon to send
traps. It is not configured to handle incoming traps. Actually, you
should look into "snmptrapd" whose documentation can also be found at
net-snmp.org.

Cheers!


Thomas
Armin Irger
2006-07-19 11:57:08 UTC
Permalink
Hello Thomas,

my snmptrapd.conf
looks like

--
traphandle default /usr/local/sbin/snmptt
--

i can't handle the information from net-snmp.org site.

Have you a working snmptrad.conf, if yes, can you please send it.

Greetings
Armin
-----Ursprüngliche Nachricht-----
Gesendet: 19.07.06 13:05:03
Betreff: Re: [Nagios-users] how to configure snmp 5.3 that snmptrap are received ?
---
<contents of snmpd.conf>
---
If i send a trap like
#snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"
only in the /var/log/net-snmptrap.log appears
No access configuration - dropping trap.
Your current setup of snmpd.conf allows the local SNMP daemon to send
traps. It is not configured to handle incoming traps. Actually, you
should look into "snmptrapd" whose documentation can also be found at
net-snmp.org.
Cheers!
Thomas
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
Alex Burger
2006-07-22 12:26:21 UTC
Permalink
Hi Armin.
Post by Armin Irger
If i send a trap like
#snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"
only in the /var/log/net-snmptrap.log appears
No access configuration - dropping trap.
See the ACCESS CONTROL section of the snmptrapd.conf man page. To
disable access control checks and accept all incoming traps, add this to
your snmptrapd.conf:

disableAuthorization yes

Alex

Loading...