Page 1 of 1

flapping configuration

Posted: Thu Jun 07, 2012 7:54 am
by idas
Hello,

I have enabled flapping for all hosts and services but i have some questions on that.

I read that flapping store the last 21 states of a host or service.
Then it compares the amount of state changes that happened in that period (21 checks)
and decide if the host is flapping.

By default, when there are more than 50% state changes (more than 11 out of 21) host consider to start flapping.
When there are less than 25% state changes (less than 5 out of 21) host consider to stop flapping.

1)The numbers 50% and 25% can be changed. Can i change somehow the total states that it stores (21)?

2)when i checked the logs from host notification, in order to check if the flapping message was send to me correctly, i found out that flapping starts always
with less than 50% state changes (but not always the same). Are the numbers that i wrote correct or i have understand something wrong?


Thank you very much,
John

Re: flapping configuration

Posted: Thu Jun 07, 2012 11:35 am
by scottwilkerson
1) The total 21 checks is hard coded
idas wrote:2)when i checked the logs from host notification, in order to check if the flapping message was send to me correctly, i found out that flapping starts always
with less than 50% state changes (but not always the same). Are the numbers that i wrote correct or i have understand something wrong?
This is almost correct.

The think that make it vary is because the 21 checks are weighted where more recent checks have more weight than the older checks when figuring out the percentage.

http://nagios.sourceforge.net/docs/3_0/flapping.html