Stefan,
Try this patch.
Jean-Louis
On 14/02/17 08:04 AM, Stefan G. Weichinger wrote:
Am 2017-02-14 um 13:05 schrieb Jean-Louis Martineau:
On 14/02/17 04:38 AM, Stefan G. Weichinger wrote:
Is there a "ignore" for amsamba as well?
no
manpage doesn't tell.
I have to ignore that:
Amanda Backup Client Hosts Check
--------------------------------
ERROR: booze: smbclient: WARNING: The security=share option is deprecated
ERROR: booze: Application 'amsamba': exited with status 1
Client check: 1 host checked in 0.749 seconds. 2 problems found.
Yeah, I know, I should fix that samba config.
then do it, change the security settin gin smb.conf
Jean-Louis
done.
Samba 4.2.14, security=user
Amanda 3.4.2:
define application-tool app_amsamba {
plugin "amsamba"
property "SMBCLIENT-PATH" "/usr/bin/smbclient"
property "AMANDAPASS" "/etc/amanda/amandapass"
property "ALLOW-ANONYMOUS" "guest"
}
define dumptype amsamba {
comment "per smbclient"
global
program "APPLICATION"
application "app_amsamba"
}
#disklist
booze pc_buchhaltung_sage //BH/SAGE {
amsamba
dumpcycle 7
compress none
} 1 local
->
$ amcheck -c daily
Amanda Backup Client Hosts Check
--------------------------------
HOST booze ERROR: smbclient: OS=[Windows 5.1] Server=[Windows 2000 LAN
Manager]
HOST booze ERROR: //BH/SAGE: Application 'amsamba': exited with status 1
Client check: 1 host checked in 0.532 seconds. 2 problems found.
(brought to you by Amanda 3.4.2)
client is XP, unfortunately I can't change that easily.
Old machine kept up for reference purposes.
diff --git a/application-src/amsamba.pl b/application-src/amsamba.pl
index 5012100..1c8e586 100644
--- a/application-src/amsamba.pl
+++ b/application-src/amsamba.pl
@@ -461,6 +461,7 @@ sub command_selfcheck {
chomp;
debug("stderr: " . $_);
next if /^Domain=/;
+ next if /^OS=/;
next if /^WARNING/g;
# message if samba server is configured with 'security = share'
next if /Server not using user level security and no password supplied./;
@@ -552,6 +553,7 @@ sub parse_estimate {
next if /blocks available/;
next if /^\s*$/;
next if /^Domain=/;
+ next if /^OS=/;
next if /dumped \d+ files and directories/;
next if /^WARNING/g;
# message if samba server is configured with 'security = share'
@@ -755,6 +757,7 @@ sub command_backup {
chomp $line;
debug("stderr: " . $line);
return if $line =~ /Domain=/;
+ return if $line =~ /OS=/;
return if $line =~ /tarmode is now /;
return if $line =~ /tar_re_search set/;
return if $line =~ /WARNING/g;