Check n times before changing state


#1

Hi,

is there a way to check n times a service before changing its state to WARNING/CRITICAL?
By example, I have a service that checks the bandwidth.
I would like to be notified only if its value has been above the critical limit for n checks.
Would that be flapping detection?

Thx,
JD


#2

Hi

Nagios recognize soft and hard states of service.

When the check command returns warning or critical return code, the state of service is changed to soft state.
Nagios doesn’t notify soft states. After period defined by parameter retry_interval the service is checked again.
This repeats max_checks_attempts times. Then the state of service is changed to hard and you got notification.


#3

Since I have nagios v2 installed, I found the equivalent in the doc:
normal_check_interval
retry_check_interval
max_check_attempts

Thanks for your help,
JD