Okay so I am officially stuck- I've tried everything I can think of, so I'm hoping you guys can jump in and provide some help.
I have setup a service in nagios that acts as an snmp trap receiver for a switch on our network. It shows up in the web interface as a service running under the switch that is being monitored.
I can send a trap from the switch to my nagios server, and here is what I get:
Tue Nov 23 17:04:50 2010 .220.127.116.11.18.104.22.168.5.3 Normal "Status Events" extreme400 - Link down on interface 12. Admin state: up. Operational state: down
Tue Nov 23 17:04:55 2010 .22.214.171.124.126.96.36.199.5.4 Normal "Status Events" extreme400 - Link up on interface 12. Admin state: up. Operational state: up
The exact same output also shows up in /var/log/messages
However, I never get the email alert or see the color change in the web interface?
Also, it should be noted before moving on, that my nagios setup does indeed send mail correctly for other monitored services when they alarm, and that the other services running under this host also send email correctly when they alarm- just not this one service, so I'm thinking SNMPTT is not actually ever passing it to nagios correctly.
Here is my host template:
And service template:
And the actual host definition:
alias Extreme x450a
And the actual service definition:
The /etc/snmp/snmptt.conf file:
EVENT enterpriseSpecific .1.3.6.* "Status Events Normal"
FORMAT Wildcard Test Trap from $r.
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP 1 "Wildcard trap received"
A generic wildcard test trap received
Does anyone have any idea why the trap is not making that last short leg of the journey to nagios?