xymon-ext-scripts

Check-in [9141752393]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Shellcheck fixes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: 9141752393164b2dde3644dad88585d30d5a1c6013fb0551851f3e4fe352470f
User & Date: feld@feld.me 2015-03-16 12:49:31
Context
2015-03-16
13:01
Consolidate redirection check-in: 8724c39bb0 user: feld@feld.me tags: master, trunk
12:49
Shellcheck fixes check-in: 9141752393 user: feld@feld.me tags: master, trunk
2015-02-05
22:30
Fix path to smartctl check-in: 099856841f user: feld@feld.me tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to gmirror.sh.

    41     41   PATH=${PATH}:/usr/local/bin:/usr/local/sbin
    42     42   
    43     43   COLUMN=gmirror
    44     44   COLOR=green
    45     45   
    46     46   MSG=$(gmirror status -s)
    47     47   
    48         -if $(echo ${MSG} | egrep -q 'DEGRADED|SYNCHRONIZING') ; then
           48  +if echo "${MSG}" | egrep -q 'DEGRADED|SYNCHRONIZING' ; then
    49     49   	STATUS="&red $(hostname) gmirror status is DEGRADED"
    50     50   	COLOR=red
    51     51   else
    52     52   	STATUS="&green $(hostname) gmirror status is OK"
    53     53   fi
    54     54   
    55         -${XYMON} ${XYMSRV} "status ${MACHINE}.${COLUMN} ${COLOR} $(date)
           55  +${XYMON} "${XYMSRV}" "status ${MACHINE}.${COLUMN} ${COLOR} $(date)
    56     56   
    57     57   ${STATUS}
    58     58   
    59     59   ${MSG}
    60     60   "