mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-23 11:43:07 +01:00
Fix filter in checkzfs call
This commit is contained in:
parent
46fa972113
commit
62f9f13581
@ -315,8 +315,8 @@ done
|
|||||||
if [ $checkzfs_disabled -eq 0 ]; then
|
if [ $checkzfs_disabled -eq 0 ]; then
|
||||||
log "[INFO] Running checkzfs..."
|
log "[INFO] Running checkzfs..."
|
||||||
echo "<<<local>>>" > /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
echo "<<<local>>>" > /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
||||||
if [[ $debug == "-v" ]]; then log "[DEBUG] Command:\n$checkzfs --source $source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter $checkzfs_filter >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}"; fi
|
if [[ $debug == "-v" ]]; then log "[DEBUG] Command:\n$checkzfs --source $source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter \"$checkzfs_filter\" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}"; fi
|
||||||
$checkzfs --source $source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter $checkzfs_filter >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
$checkzfs --source $source --output checkmk --threshold $checkzfs_max_age --maxsnapshots $checkzfs_max_snapshot_count --prefix $checkzfs_prefix --filter "$checkzfs_filter" >> /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix}
|
||||||
if [ $checkzfs_spool -eq 0 ]; then
|
if [ $checkzfs_spool -eq 0 ]; then
|
||||||
$mv /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix} /var/lib/check_mk_agent/spool/
|
$mv /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix} /var/lib/check_mk_agent/spool/
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user