On n'utilise plus l'autosatus pour dterminer si on doit passer en secours
ou non. darcs-hash:20041021165846-41617-db25e1230d0495ab89a2cfbf0d2ff00a20666310.gz
This commit is contained in:
parent
25f3c99c5d
commit
15940a3b36
1 changed files with 4 additions and 5 deletions
|
@ -5,7 +5,6 @@
|
|||
# Teste l'état des serveurs distants grâce à autostatus (appellé sans arguments)
|
||||
# Permet de passer en connexion par ADSL ou ENS suivant les options fournies
|
||||
|
||||
STATUS='/var/www/cransonly/autostatus/local.html' # Page web de autostatus
|
||||
ETAT='/CRANS/code/etat.py' # Stoquage de l'état de la connexion
|
||||
|
||||
ssh () {
|
||||
|
@ -42,10 +41,10 @@ fi
|
|||
# source /root/snmp-community-names
|
||||
|
||||
if [[ $force -ne -1 ]] && ( [[ $force -eq 1 ]] || (\
|
||||
grep -q 'Free.*dep.png' $STATUS && \
|
||||
grep -q 'Google.*dep.png' $STATUS && \
|
||||
grep -q 'Yahoo.*dep.png' $STATUS && \
|
||||
grep -q 'Voila.*dep.png' $STATUS ) ) ; then
|
||||
! /usr/sbin/fping -q 216.239.39.104 2>/dev/null && \
|
||||
! /usr/sbin/fping -q 213.228.0.42 2>/dev/null && \
|
||||
! /usr/sbin/fping -q 217.12.3.11 2>/dev/null && \
|
||||
! /usr/sbin/fping -q 195.101.94.80 2>/dev/null ) ) ; then
|
||||
if [[ $secours -ge 1 ]] ; then
|
||||
echo "Reste en mode secours"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue