Guys, I was wondering if one of you could provide some insight into this issue I'm having with snmp. I'm trying to make my redhat linux server a trap receiver to send out notifications for pages. Unfortunately there's not much information on the web in the sense of a step-by-step guide as far as installing and configuring snmp. In any case, I've looked high and low and east and west and still have not been able to make my snmp run. I've tried everything short of pulling my hair out.
At first I tried downloading and installing the latest file from sourceforge but that didn't go well, so I later decided to install SNMP from the RPM package on the redhat update page: net-snmp-5.1.2-13.2.i386.rpm I later installed all the dependencies the installation asked for as missing: net-snmp-libs-5.1.2-13.2 elfutils-libelf-devel-0.97-5 elfutils-devel-0.97-5 The package installed all the necessary scripts on /etc/init.d: snmpd snmptrapd When I run a remote snmpget or snmpwalk, it works perfect. The problem is that I cannot process or receive traps. Any ideas as to what I might be missing or what I have misconfigured? Below you can find the configuration files as well as the debug outputs for my system: snmpd -v NET-SNMP version: 5.4.2.1 Web: http://www.net-snmp.org/ Email: net-snmp-cod...@lists.sourceforge.net snmpd -f -Le -d: Warning: no access control information configured. It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent. Error opening specified endpoint "" Server Exiting with code 1 snmpconf -g basic_setup: no such directory /usr/local/share/snmp/snmpconf-data, did you run make install? snmptrapd -f -Le -d: Warning: no access control information configured. This receiver will *NOT* accept any incoming notifications. NET-SNMP version 5.4.2.1 couldn't open udp:162 -- errno 98 ("Address already in use") /var/log/snmptraps.log: /etc/snmp/snmptrapd.conf: line 4: Warning: Unknown token: authCommunity. 2009-01-22 12:16:45 NET-SNMP version 5.1.2 Started. "ps aux | egrep snmp*" root 31369 0.0 0.5 13452 5380 ? S 12:09 0:00 /usr/sbin/snmpd -Cc /etc/snmp/snmpd.conf root 31427 0.0 0.3 11128 3848 ? Ss 12:16 0:00 /usr/sbin/snmptrapd -Lf /var/log/snmptraps.log -Cc /etc/snmp/snmptrapd.conf /etc/snmp/snmpd.conf: rocommunity public #rwcommunity private authtrapenable 1 trapsink 16.80.4.195 public trapcommunity public rwuser AnuragB /etc/snmp/snmptrapd.conf: AuthCommunity log,execute,net public traphandle .1.3.6.1.4.1.6889 /usr/local/bin/traptoemail email traphandle .1.3.6.1.4.1.6889 /scripts/email.sh traphandle SNMPv2-SMI::enterprises.6889.1.8.1.51 /usr/local/bin/traptoemail email traphandle SNMPv2-SMI::enterprises.3.1.1 /scripts/email.sh /etc/default/snmpd: export MIBDIRS=/usr/local/share/snmp/mibs SNMPDRUN=yes SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid' TRAPDRUN=yes TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid' SNMPDCOMPAT=yes ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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