diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-04-20 13:46:17 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-04-20 13:46:17 (GMT) |
commit | a50079018221f48ff750412ee68649ad63252908 (patch) | |
tree | ef19078a9b10e851a567a45e497d283ed825b72f /abs/core/xymon/hobbit-myth-orphan.sh | |
parent | 8948f44addbdd49e1b1f3429cb137d29964a21c0 (diff) | |
download | linhes_pkgbuild-a50079018221f48ff750412ee68649ad63252908.zip linhes_pkgbuild-a50079018221f48ff750412ee68649ad63252908.tar.gz linhes_pkgbuild-a50079018221f48ff750412ee68649ad63252908.tar.bz2 |
xymon: hobbit-myth-orphan.sh: make db backups not result in yellow condition
Diffstat (limited to 'abs/core/xymon/hobbit-myth-orphan.sh')
-rw-r--r-- | abs/core/xymon/hobbit-myth-orphan.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/abs/core/xymon/hobbit-myth-orphan.sh b/abs/core/xymon/hobbit-myth-orphan.sh index ff91fb5..5f7c7ba 100644 --- a/abs/core/xymon/hobbit-myth-orphan.sh +++ b/abs/core/xymon/hobbit-myth-orphan.sh @@ -1,5 +1,5 @@ #!/bin/bash -TMPFILE=/tmp/oprhan.result +TMPFILE=/tmp/orphan.result MYTHCONFDIR=/usr/share/mythtv /usr/LH/bin/find_orphans.py --printonly > $TMPFILE COLUMN=orphan # Name of the column @@ -12,18 +12,25 @@ for i in "Orphaned video files" "Orphaned snapshots" "Database backups" "Other f do grep -q "$i" $TMPFILE status=$? - if [ $status -eq 0 ] + if [[ $status -eq 0 ]] && [[ $i == "Database backups" ]] + then + MSG="$i" + elif [ $status -eq 0 ] then COLOR="yellow" - MSG="Problems with $i" + MSG="Problems with" fi done -if [[ $MSG != "No Orphans Found." ]] +if [[ $MSG == "Database backups" ]] then MSG=" - ${MSG} - `cat $TMPFILE` +`cat $TMPFILE` +" +elif [[ $MSG != "No Orphans Found." ]] +then +MSG=" +${MSG} `cat $TMPFILE` <b>From <a href="/shell/" target="_blank">System >> Terminal</a> run find_orphans.py to clean up these issues.</b> " |