Ignore:
Timestamp:
05/28/19 11:36:23 (6 years ago)
Author:
Daniela Dorner
Message:
bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Monitoring/CheckSwiftSchedule.sh

    r19499 r19519  
    3939function getschedule()
    4040{
    41    text=`links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1'\|was not found' >> $schedulefile `
     41   text=$( { links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1'\|was not found\|Connection' >> $schedulefile ; } 2>&1 )
    4242   #text=`links -width 300 -ssl.certificates 0 -dump https://www.swift.psu.edu/operations/obsSchedule.php?d=$1 | grep $1 >> $schedulefile `
    4343   check1=$?
    44    #echo "check "$check1
    4544   if [ "$text" != "" ] || [ $check1 -gt 0 ]
    4645   then
     
    4847      printprocesslog "WARN could not get Swift schedule ("$text", return code: "$check1")"
    4948      echo "WARN could not get Swift schedule ("$text", return code: "$check1")"
    50       if [ "$text" = "Connection timed out" ]
     49      if [ "$text" = "Connection timed out" ] || [ "$text" = "Connection refused" ]
    5150      then
    5251         printprocesslog "WARN could not connect to https://www.swift.psu.edu/operations/obsSchedule.php?d="$1
     
    125124   #   1: differences found
    126125   #  >1: error
     126   upd=""
    127127   if [ -e $schedulefile2old ]
    128128   then
    129       if diff $schedulefile2 $schedulefile2old >/dev/null
     129      diff $schedulefile2 $schedulefile2old >/dev/null
     130      checkdiff=$?
     131      if [ $checkdiff -eq 0 ]
    130132      then
    131133         printprocesslog "INFO Schedule did not change."
Note: See TracChangeset for help on using the changeset viewer.