icinga2/contrib/flap.sh

9 lines
118 B
Bash
Raw Normal View History

2013-07-30 13:09:26 +02:00
#!/bin/sh
2013-08-09 14:59:09 +02:00
echoerr() { echo "$@" 1>&2; }
2013-07-30 13:09:26 +02:00
foo=$(shuf -i 0-3 -n 1)
echo "flapme: $foo"
2013-08-09 14:59:09 +02:00
echoerr "stderr test"
2013-07-30 13:09:26 +02:00
exit $foo