Nagios Flap Detection

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pato
Posts: 18
Joined: Thu Oct 10, 2013 6:06 pm
Location: Melbourne, Australia

Nagios Flap Detection

Post 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
}
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Flap Detection

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
pato
Posts: 18
Joined: Thu Oct 10, 2013 6:06 pm
Location: Melbourne, Australia

Re: Nagios Flap Detection

Post by pato »

Thanks for that, it's good to know. Looks like a wrapper script is the best way to do this :)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Flap Detection

Post by tmcdonald »

Are we clear to lock this one up?
Former Nagios employee
Locked