From f39c1fe779bfc11d665ff87d0a80af8592a8cb6c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 21 Mar 2021 19:22:12 +0000 Subject: Update backup volume nagios service --- scripts/backup.cron | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') diff --git a/scripts/backup.cron b/scripts/backup.cron index 4b150fe..b995d81 100755 --- a/scripts/backup.cron +++ b/scripts/backup.cron @@ -4,6 +4,7 @@ basedir="/var/backup" prefix="daily" count="25" list="dirs.list" +nagioscmd="/var/www/shared/nagios/rw/nagios.cmd" ( mountpoint -q $basedir && umount $basedir @@ -60,7 +61,9 @@ rm -f ${basedir}/${prefix}.0/postgresql-bugzilla.sql.xz pg_dump -Upostgres bugzilla | xz > ${basedir}/${prefix}.0/postgresql-bugzilla.sql.xz echo "Begin hardlink @ `date`" >> ${basedir}/time +npsw virtualip "Backup Volume" /usr/lib64/nagios/plugins/check_disk -w 5% -c 2% $basedir > $nagioscmd hardlink -mt ${basedir} +npsw virtualip "Backup Volume" /usr/lib64/nagios/plugins/check_disk -w 5% -c 2% $basedir > $nagioscmd echo "End @ `date`" >> ${basedir}/time umount ${basedir} -- cgit v1.2.3