Still i am unable to generate trap messages. Please let me know where i did mistake.
$ sudo /usr/sbin/snmptrapd -f -Lo -d -c /home/uk1577/snmptrapd.conf Password: Last successful login for uk1577: Fri Mar 28 10:33:35 EST5EDT 2008 on pts/ti Last unsuccessful login for uk1577: Fri Mar 28 10:34:10 EST5EDT 2008 on e NET-SNMP version 5.4.1 $ snmptrap -v 1 -c public localhost "" "" 2 0 "" read_config_store open failure on /var/net-snmp/snmpapp.conf read_config_store open failure on /var/net-snmp/snmpapp.conf read_config_store open failure on /var/net-snmp/snmpapp.conf here is from snnmptarpd.conf file traphandle SNMPv2-MIB::coldStart /home/uk1577/trap.sh cold traphandle SNMPv2-MIB::warmStart /home/uk1577/trap.sh warm traphandle IF-MIB::linkDown /home/uk1577/trap.sh down traphandle IF-MIB::linkUp /home/uk1577/trap.sh up ignoreauthfailure 1 disableAuthorization yes snmpd.conf # SECTION: Trap Destinations # # Here we define who the agent will send traps to. # trapsink: A SNMPv1 trap receiver # arguments: host [community] [portnum] trapsink localhost public # trap2sink: A SNMPv2c trap receiver # arguments: host [community] [portnum] trap2sink localhost public # informsink: A SNMPv2c inform (acknowledged trap) receiver # arguments: host [community] [portnum] informsink localhost public # trapcommunity: Default trap sink community to use # arguments: community-string trapcommunity public authtrapenable 1 Umesh Kamath/India/IBM 03/27/2008 16:21 To [EMAIL PROTECTED] cc net-snmp-users@lists.sourceforge.net, [EMAIL PROTECTED], [EMAIL PROTECTED] Subject Re: Net-SNMP (ASAP) Dave, I have tried snmpget, snmpgetnext and others commands are working except snmptrap. I ran the snmptrapd as sudo root and ran the snmptrap as my user "uk1577". I am getting below error snmptrap -v 1 -c public localhost "" "" 0 0 "" read_config_store open failure on /var/net-snmp/snmpapp.conf read_config_store open failure on /var/net-snmp/snmpapp.conf read_config_store open failure on /var/net-snmp/snmpapp.conf when i checked snmpapp.conf file under /var/net-snmp directory is missing Here is snmptrapd.conf output I added community is public traphandle SNMPv2-MIB::coldStart /umesh/uttara/trap.sh cold traphandle SNMPv2-MIB::warmStart /umesh/uttara/trap.sh warm traphandle IF-MIB::linkDown /umesh/uttara/trap.sh down traphandle IF-MIB::linkUp /umesh/uttara/trap.sh up "Dave Shield" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/27/2008 07:11 To Umesh Kamath/India/[EMAIL PROTECTED] cc [EMAIL PROTECTED], net-snmp-users@lists.sourceforge.net Subject Re: Net-SNMP (ASAP) On 27/03/2008, Umesh Kamath <[EMAIL PROTECTED]> wrote: > When i tried to run snmpd i got an error as below > > /tmp/net-snmp-5.4.1/sbin/snmpd -f -Le -Dread_config > Error opening specified endpoint "" > Server Exiting with code 1 That's expected if you're running as non-root. > Here when i tried to bind on port 1161, > i got read_config_store open failure on /var/net-snmp/snmpd.conf > > /tmp/net-snmp-5.4.1/sbin/snmpd -f -Le -d udp:1161 > read_config_store open failure on /var/net-snmp/snmpd.conf > read_config_store open failure on /var/net-snmp/snmpd.conf > read_config_store open failure on /var/net-snmp/snmpd.conf Again, that's expected when running as non-root. Don't worry about them - the agent will run OK. > I ran /tmp/net-snmp-5.4.1/sbin/snmpd -c /home/uk1577/snmpd.conf udp:1161 > command and this daemon showing in "ps -ef". but when i run > "snmpget -v1 -cpublic localhost sysUpTime.0" > i am getting timeout Response. > Here is snmpd.conf o/p > > rwuser "uk1577" noauth > rouser uk1577 noauth 0 If you are using SNMP_v1, then these two lines are irrelevant. (though you don't need both entries - rwuser covers read-access) > rocommunity public localhost > rwcommunity public localhost.localdomain Again, you don't need both entries. Try deleting both lines, and just have the one entry rocommunity public Then restart the agent, and see whether you can query it or not. If not, then restart the agent using /tmp/net-snmp-5.4.1/sbin/snmpd -f -Le -d -c /home/uk1577/snmpd.conf udp:1161 and send the same query. Do you see anything output by the agent or not? Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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
<<image/gif>>
<<image/gif>>
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________ 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