Hello, I have this snmpd.conf configuration on one host (a lot more, but 
this is the relevant part)

trapsink  10.0.0.4 test
trap2sink  10.0.0.4  test
informsink  10.0.0.4 test
authtrapenable  1

This for the snmptraps part.
On host 10.0.0.4, I have this snmptrapd.conf file

traphandle  1.3.6.1.2.1.2 "/bin/sh /tmp/trapTst.sh"
traphandle  1.3.6.1.4.1.2021.2.1.100 "/bin/sh /tmp/trapTst.sh"
traphandle  NOTIFICATION-TEST-MIB::demo-notif /bin/sh /tmp/trapTst.sh
traphandle default /bin/sh /tmp/trapTst.sh
donotlogtraps  no
printeventnumbers  yes
ignoreauthfailure  no
authCommunity log,event test
nmpTrapdAddr 10.0.0.4


Now, when I start the snmpd on 10.0.0.1 (the SNMP host), the 
snmptrapd.log shows this
NET-SNMP version 5.4
2007-07-26 13:13:08 <hostname_striped> [***.***.***.***] (via UDP: 
[10.0.0.1]:49484) TRAP, SNMP v1, community ouvi
        NET-SNMP-MIB::netSnmpNotificationPrefix Enterprise Specific Trap 
(NET-SNMP-AGENT-MIB::nsNotifyShutdown) Uptime: 0:03:26.15

2007-07-26 13:13:08 <UNKNOWN> [UDP: [10.0.0.1]:49485]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (20615) 0:03:26.15     
SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyShutdown
2007-07-26 13:13:08 <UNKNOWN> [UDP: [10.0.0.1]:49487]:
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (20615) 0:03:26.15     
SNMPv2-MIB::snmpTrapOID.0 = OID: NET-SNMP-AGENT-MIB::nsNotifyShutdown
2007-07-26 13:13:08 <hostname_striped> [***.***.***.***] (via UDP: 
[10.0.0.1]:49491) TRAP, SNMP v1, community ouvi
        NET-SNMP-MIB::netSnmpAgentOIDs.10 Cold Start Trap (0) Uptime: 
0:00:00.09

Does this by any chance means that the snmptrap is working fine?
I've also tryed to make the snmptrap tutorial on the net-snmp wiki 
(http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptrap), I can 
execute the 
snmptrap -v 2c -c public localhost "" NOTIFICATION-TEST-MIB::demo-notif \
         SNMPv2-MIB::sysLocation.0 s "just here"
but nothing happens.
I'm doing something wrong?
Also, let's say I have on the snmpd.conf file this:

proc  apache2 100 1

And let's say that apache2 has stopped, will this triger a trap to the 
trapserver?

Thanks a lot.

Mateus


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to