Discussion:
amdump exit codes
Hans-Dieter.Doll
2008-05-24 21:36:03 UTC
Permalink
Hi all,

are amdump exit codes somehow classified?
I mean, is there any way to check whether an exit code should be
considered as a warning or a real error (or may be ignored)?

Background: my script calling amdump publishes the result on a
web page, in a way that my service department is alarmed when errors
appear. I'm currently using amanda version 2.5.2p1. Previous versions
seem to return an exit code !=3D 0 on real errors only (something like
no or wrong tape in the tape drive, or whatever).
Since 2.5.2p1 I frequently get exit code 2 (e.g.) because
? gtar: ./hd2/Mail/DrB/Customer/Bosch: file changed as we read it
which is actually harmless, and I would like to suppress any message
if this happens.
With previous amanda versions I did not always get exit codes if errors
appeared someone should care about. Thus my scripts check the amdump out=
put
(i.e. the email report) for strings possibly indicating an error
(and e.g. only warn against strange dump results).
But this approach is for sure not very reliable, and I really like that
newer versions indicate errors by means of exit codes relativly reliable=
.
But I require some kind of classification (otherwise no one cares about
real errors).

How do other people cope with this subject?
Any ideas appreciated...

--hd^2
Jean-Louis Martineau
2008-05-26 11:40:11 UTC
Permalink
It's the ORed value of:
0 = success
1 = error
2 = a dle give strange message
4 = a dle failed
8 = Don't know the status of a dle (RESULT_MISSING in the report)
16 = tape error or no more tape

Jean-Louis
Post by Hans-Dieter.Doll
Hi all,
are amdump exit codes somehow classified?
I mean, is there any way to check whether an exit code should be
considered as a warning or a real error (or may be ignored)?
Background: my script calling amdump publishes the result on a
web page, in a way that my service department is alarmed when errors
appear. I'm currently using amanda version 2.5.2p1. Previous versions
seem to return an exit code != 0 on real errors only (something like
no or wrong tape in the tape drive, or whatever).
Since 2.5.2p1 I frequently get exit code 2 (e.g.) because
? gtar: ./hd2/Mail/DrB/Customer/Bosch: file changed as we read it
which is actually harmless, and I would like to suppress any message
if this happens.
With previous amanda versions I did not always get exit codes if errors
appeared someone should care about. Thus my scripts check the amdump
output
(i.e. the email report) for strings possibly indicating an error
(and e.g. only warn against strange dump results).
But this approach is for sure not very reliable, and I really like that
newer versions indicate errors by means of exit codes relativly reliable.
But I require some kind of classification (otherwise no one cares about
real errors).
How do other people cope with this subject?
Any ideas appreciated...
--hd^2
Hans-Dieter Doll
2008-08-05 09:39:22 UTC
Permalink
Hi,

today amdump (2.5.2p1) returned 1, but except notes for "full dumps promoted"
and "big estimates" I cannot see any error.
Do notes at all cause exit code 1?

--hd^2
Post by Jean-Louis Martineau
0 = success
1 = error
2 = a dle give strange message
4 = a dle failed
8 = Don't know the status of a dle (RESULT_MISSING in the report)
16 = tape error or no more tape
Jean-Louis
Post by Hans-Dieter.Doll
Hi all,
are amdump exit codes somehow classified?
I mean, is there any way to check whether an exit code should be
considered as a warning or a real error (or may be ignored)?
Background: my script calling amdump publishes the result on a
web page, in a way that my service department is alarmed when errors
appear. I'm currently using amanda version 2.5.2p1. Previous versions
seem to return an exit code != 0 on real errors only (something like
no or wrong tape in the tape drive, or whatever).
Since 2.5.2p1 I frequently get exit code 2 (e.g.) because
? gtar: ./hd2/Mail/DrB/Customer/Bosch: file changed as we read it
which is actually harmless, and I would like to suppress any message
if this happens.
With previous amanda versions I did not always get exit codes if errors
appeared someone should care about. Thus my scripts check the amdump
output
(i.e. the email report) for strings possibly indicating an error
(and e.g. only warn against strange dump results).
But this approach is for sure not very reliable, and I really like that
newer versions indicate errors by means of exit codes relativly reliable.
But I require some kind of classification (otherwise no one cares about
real errors).
How do other people cope with this subject?
Any ideas appreciated...
--hd^2
--
Hans-Dieter Doll
Dr. Brunthaler Industrielle Informationstechnik GmbH
Motzstr. 5, D-10777 Berlin
Fon: +49.30.215081-0, Fax: +49.30.215081-88
mailto:Hans-***@DrB.Insel.DE
http://www.brunthaler.de

Geschäftsführer: Prof. Dr.-Ing. Stefan Brunthaler
Sitz der Gesellschaft: Berlin
Handelsregister: HRB 27 337 Amtsgericht Charlottenburg
Loading...