Page 1 of 1

Nagios Flap Detection

Posted: Mon Oct 27, 2014 5:26 pm
by pato
Hi all,

Currently when a service starts flapping notifications are supressed until the flapping drops below the threshold. In our environment this means that users not configured to receive alerts for flapping will receive one CRITICAL/WARNING notification, and no recovery notification (as the host recovers while the flapping event is in progress).

Is there any way for a recovery notification to be issued when the host stops flapping, without enabling flap notifications for the user/service?

Nagios 4.0.8 running on Centos 6.4 Contacts set to receive W, U, C, R notifications, but not flapping notifications.

Code: Select all

define service {
        use                     rabbitmqpriority-service
        host_name               pspap22.domain.local
        service_description     check_rabbitmq_queue-Workspace.BookingProposed
        contact_groups          rabbitmq
        check_command           check_rabbitmq_queue
        servicegroups           app-rabbit
}

Code: Select all

define service {
        name                            rabbitmqpriority-service
        use                             generic-service
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           1
        retry_check_interval            1
        contact_groups                  rabbitmq
        notification_options            w,u,c,r
        notification_interval           60
        notification_period             24x7
        register                        0
}

Re: Nagios Flap Detection

Posted: Tue Oct 28, 2014 10:32 am
by sreinhardt
There is not an option to receive only recovery flapping alerts with the default nagios notification options. You could definitely write a wrapper script to handle dropping flapping warning\criticals and allow recovery, but otherwise flapping is an all or nothing option at this time.

Re: Nagios Flap Detection

Posted: Wed Oct 29, 2014 5:10 pm
by pato
Thanks for that, it's good to know. Looks like a wrapper script is the best way to do this :)

Re: Nagios Flap Detection

Posted: Thu Oct 30, 2014 9:36 am
by tmcdonald
Are we clear to lock this one up?