Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get my head around our snmpd.conf file in order to begin managing snmp with puppet. The existing file has several alarms setup for things like excessive disk space, load, etc. I'm assuming that when these conditions are reached an snmp trap is sent to the manager. However, the snmpd.conf file does not contain any manager setup or information. In other words there is no mention of a host or port where the manager runs. Thus, how does it know where to send traps? Is there some discover protocol?

share|improve this question
up vote 3 down vote accepted

At a minimum, you need to define trapsink, trap2sink or informsink in /etc/snmp/snmpd.conf to specify the host to send SNMP traps to. You can also specify the community string and an alternate port number (if not using 162).

You can also set a trapcommunity for a default community string to be used when sending traps.

For sending v3 traps, use trapsess.

See the snmpd.conf man page for full details. See also the net-snmp snmptrap tutorial and snmptrap v3 tutorial.

share|improve this answer
trapcommunity is defined, but none of the other options you mention are. Perhaps this is part of my confusion - I don't understand how a trapcommunity (essentially an arbitrary string) maps to a manager. There's certainly no manager listed in the file. – Andy Mar 1 '13 at 23:44
Right. There should be something defined in there to specify where traps are sent to. If there isn't, then they aren't going to be sent anywhere. – Michael Hampton Mar 1 '13 at 23:49
Thanks, that makes sense to me. Premature question on my part. Working through the snmp utils now to try and test directly. – Andy Mar 1 '13 at 23:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.