git://git.onelab.eu
/
monitor.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
clearer names for actions, and infer actions better
[monitor.git]
/
nagios
/
test
/
status.sh
1
#!/bin/bash
2
3
source /usr/share/monitor/nagios/common.sh
4
5
HOST=monitor.planet-lab.org
6
open_http $HOST
7
8
PAUSE=$( random_delay 30 )
9
sleep $PAUSE
10
/usr/lib/nagios/plugins/check_dummy $( percent_true 90 ) "After $PAUSE sec pause; $1"
11
R=$?
12
13
close_http
14
exit $R