forked from extern/zsync
Fix checkzfs spool local or remote decision
This commit is contained in:
parent
6e916b0074
commit
7e7a249c3b
@ -331,7 +331,7 @@ if [ $checkzfs_disabled -eq 0 ]; then
|
||||
|
||||
if [[ $debug == "-v" ]]; then log "[DEBUG] Command:\n$checkzfs $c_key $c_value --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 $c_key $c_value --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 ] || [ $checkzfs_spool -gt 0 ]; then
|
||||
if [ $checkzfs_spool -eq 0 ] || [ $checkzfs_local -gt 0 ]; then
|
||||
$mv /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix} /var/lib/check_mk_agent/spool/
|
||||
else
|
||||
$scp -P ${sshport} /tmp/${checkzfs_spool_maxage}_${checkzfs_prefix} ${source}:/var/lib/check_mk_agent/spool/
|
||||
|
Loading…
Reference in New Issue
Block a user