Ignore:
Timestamp:
01/21/14 01:35:09 (11 years ago)
Author:
Daniela Dorner
Message:
minor changes in db query
File:
1 edited

Legend:

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

    r13043 r17529  
    66
    77offset=`/usr/sbin/ntpdate -d ptbtime1.ptb.de 2>/dev/null | grep '^offset*' | cut -d' ' -f2`
    8 query="INSERT NTPDate set fOffset="$offset", fMachineKEY=(SELECT fMachineKEY from Machine WHERE fMachineName='"$HOSTNAME"'), fTime=Now()"
     8query="INSERT NTPDate SET fOffset="$offset", fMachineKEY=(SELECT fMachineKEY FROM Machine WHERE fMachineName='"$HOSTNAME"'), fTime=Now()"
    99# host needs full address to work also on fact01
    10 /usr/bin/mysql -u systemstatus --host=fact01.fact.local SystemStatus -e "$query"
     10/usr/bin/mysql -u systemstatus --host=fact01.fact.local systemstatus -e "$query"
    1111
    1212if [ $(echo " $offset > 1  ||  $offset < -1 " | bc) -eq 1 ]
Note: See TracChangeset for help on using the changeset viewer.