[-]
[+]
|
Changed |
nagios-plugins-plesk.spec
|
|
[-]
[+]
|
Changed |
check_automysqlbackup
^
|
@@ -4,7 +4,7 @@
[ -f /etc/nagios/check_automysqlbackup.conf ] && . /etc/nagios/check_automysqlbackup.conf
-count=$( find ${BASEPATH}. -type f -name '*.bz2' -o '*.gz' -o '*.sql' -mtime 0 | wc -l )
+count=$( find ${BASEPATH}. -type f -name '*.bz2' -o -name '*.gz' -o -name '*.sql' -mtime 0 | wc -l )
if [ $count -gt 0 ] ; then
echo "OK: found $count table backup files"
|
[-]
[+]
|
Changed |
check_multimysqlbackup
^
|
@@ -2,9 +2,6 @@
CONFPATH="/etc/multimysqlbackup.conf"
-
-# defined for fallbackup only
-BACKUPDIR="/backup/mysql/localhost/"
STAT=0
if [ -s "${CONFPATH}" ] ; then
# read each active host from multimysql backup config
@@ -12,10 +9,11 @@
# get the hostname
export DBHOST=`echo ${LINE} | awk -F\; '{print $1}' | awk -F: '{print $1}'`
+ unset BACKUPDIR
# include default configuration to construct dynamic backup path (BACKUPDIR)
[ -f /etc/automysqlbackup/automysqlbackup.conf ] && . /etc/automysqlbackup/automysqlbackup.conf
- count=$( find ${BACKUPDIR}/. -type f -name '*.bz2' -o '*.gz' -o '*.sql' -mtime 0 | wc -l )
+ count=$( find ${BACKUPDIR}/. -type f -name '*.bz2' -o -name '*.gz' -o -name '*.sql' -mtime 0 | wc -l )
if [ $count -gt 0 ] ; then
echo "OK: found $count table backup files for host - $DBHOST"
|