summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-21 19:22:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-21 19:22:12 +0000
commitf39c1fe779bfc11d665ff87d0a80af8592a8cb6c (patch)
treecc586eabf39b358b1ceb32b9ea157d3705fb0334 /scripts
parentAdd backup volume (diff)
downloadconfig-f39c1fe779bfc11d665ff87d0a80af8592a8cb6c.tar.bz2
config-f39c1fe779bfc11d665ff87d0a80af8592a8cb6c.tar.xz
config-f39c1fe779bfc11d665ff87d0a80af8592a8cb6c.zip
Update backup volume nagios service
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/backup.cron3
1 files changed, 3 insertions, 0 deletions
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}