Suppress notification for same SNMP trap
Posted: Thu Mar 06, 2014 4:00 am
Hi guys,
I'm having a trouble where Nagios sends notification by email for the same trap from the same host multiple times in exactly the same intervals - 5 seconds in between. In case of our Juniper routers, Juniper indeed sends same trap when link fails multiple times, but Cisco sends only one trap for interface, yet Nagios sends multiple emails, and they are always 5-6 seconds apart.
So when a link fails, i get 2-7 emails for the same interface.
Is there a way to suppress sending same notification for same OID for the same host so that I could only get
I'm reading both SNMPTT and Nagios documentation, but I couldn't find anything.
The closest thing is setting volatile parameter to 0, but that suppresses sending trap for same interface indefinitely or at least it's cleared.
This is my configuration for the service:
I would really be thankful for help on this.
Kind Regards
I'm having a trouble where Nagios sends notification by email for the same trap from the same host multiple times in exactly the same intervals - 5 seconds in between. In case of our Juniper routers, Juniper indeed sends same trap when link fails multiple times, but Cisco sends only one trap for interface, yet Nagios sends multiple emails, and they are always 5-6 seconds apart.
So when a link fails, i get 2-7 emails for the same interface.
Is there a way to suppress sending same notification for same OID for the same host so that I could only get
I'm reading both SNMPTT and Nagios documentation, but I couldn't find anything.
The closest thing is setting volatile parameter to 0, but that suppresses sending trap for same interface indefinitely or at least it's cleared.
This is my configuration for the service:
Code: Select all
define service{
name linkDown_trap-service
use generic-service
register 0
service_description linkDown_trap
is_volatile 1
check_command check-host-alive
flap_detection_enabled 0
process_perf_data 0
retain_status_information 0
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
passive_checks_enabled 1
active_checks_enabled 1
check_period none
notification_interval 31536000
contact_groups admins
}I would really be thankful for help on this.
Kind Regards