git://developer.intra2net.com
/
pingcheck
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9b7a9a696d2973046be0320ccf060a75df4eab24
[pingcheck]
/
scripts
/
system_status_alert.sh
1
#!/bin/sh
2
3
4
up()
5
{
6
echo "LINK UP"
7
}
8
9
10
down()
11
{
12
echo "LINK DOWN"
13
}
14
15
16
case $1 in
17
up)
18
up
19
;;
20
down)
21
down
22
;;
23
*)
24
echo "Usage: system_status_alert {up|down}"
25
RETVAL=1
26
esac
27
28
29
exit $RETVAL