refactor web pagination and add partitioned events, flap/timeout showcase agents
This commit is contained in:
9
deploy/showcase/checks/flap.sh
Executable file
9
deploy/showcase/checks/flap.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Alternates between ok and critical every ~30 seconds to demonstrate flapping.
|
||||
slot=$(( $(date +%s) / 30 % 2 ))
|
||||
if [ "$slot" -eq 0 ]; then
|
||||
echo "critical: flap window down"
|
||||
exit 2
|
||||
fi
|
||||
echo "ok: flap window up"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user