Hi Spenser,
I think I figured out the issue but I need your help!!! BTW sorry for the delay in response as I was side tracked on another project.
Ok, you remember how "heartbeat" with a "Normal" status was showing up in snmptt.log but not always in nagios.log well I did something out of the box changes, I changed the criticality in my mib "/usr/share/snmp/mibs/processed_mibs/notification-mib" to Warning and guess what! heartbeat was showing up every time.
This means that there is something going on with snmptt or my event handler which is /usr/local/bin/snmptraphandling.py that when the state is "OK" it will not forward any new states unless the state changes, I would need it to forward all the time even if OK. BTW this is not only this service but it is doing it on all services as I changed a highly active snmptrap which when in Warning it would grab it all the time but when OK it only received it once in nagios.log.
Example:
heartbeat OK <---- THIS IS SENT TO NAGIOS
heartbeat OK <----- THIS IS NOT SENT TO NAGIOS
heartbeat OK <----- THIS IS NOT SENT TO NAGIOS
heartbeat OK <----- THIS IS NOT SENT TO NAGIOS
heartbeat OK <----- THIS IS NOT SENT TO NAGIOS
heartbeat CRITICAL <---- NAGIOS PROCESSES nagios.log for SNMP TRAP but does not detect new "heartbeat traps" X hours and changes state to CRITICAL
heatbeat OK <----- THIS IS SENT TO NAGIOS
snmptt trap version: snmptt-1.4-0.9.beta2.el6.noarch
I'm wondering if you could help me with this.
I've attached my snmptt.ini and my snmptraphandling.py
Code: Select all
EVENT heartbeatNotify .1.3.6.1.4.1.x.100.3.1 "Status Events" Warning
FORMAT $4 heartbeat $7 = $8 $5
EXEC /usr/local/bin/snmptraphandling.py "$1" "heartbeatNotify" "$s" "$@" "$-*" "$1 $7 $8"
SDESC
This is the system's heartbeat.
Variables:
1: smsSystemSn
2: smsSystemName
3: smsSystemLocation
4: smsSystemDescription
5: smsSystemTime
6: smsOrigin
7: smsObjectName
8: smsObjectValue
EDESC