Hi People,
is there a way that a service check send a notification after the service state goes like 5 times on critical ?
thx already for help
Hi People,
is there a way that a service check send a notification after the service state goes like 5 times on critical ?
thx already for help
It depends on what you want to achieve.
If it is to recognize a behavior like the state is changing very oft in short time, have a look at the flapping attributes of service. But this would be triggered by every non-ok state.
If you want to be more flexible, I would recommend to create your own plugin which gathers information from the database. This would need an additional custom plugin and another service configured.
Last idea would be a special notification plugin which stores the number of times it was triggered and only sends a notification after your defined threshold. This would require a custom notification script.
theres no way inside the service checks like:
$counter = 0
$state = “Critical”
if ($state -eq “Critical”) {
$counter += 1
}
if ($counter -eq “5”) {
Send-Alert
$counter = 0
}