List Info

Thread: Digest Number 1262




Digest Number 1262
country flaguser name
United States
2007-09-22 08:16:48

Messages In This Digest (1 Message)

1a.
Re: Modifications to amdump From: Dustin J. Mitchell

Message

1a.

Re: Modifications to amdump

Posted by: "Dustin J. Mitchell" dustinzmanda.com?Subject= Re%3A%20Modifications%20to%20amdump"> dustinzmanda.com

Fri Sep 21, 2007 7:46 am (PST)

On 9/20/07, Marc Muehlfeld < Marc.Muehlfeld%40medizinische-genetik.de">Marc.Muehlfeldmedizinische-genetik.de> wrote:
&gt; I tried to find a better solution than my last one to improve errorhandling in
> amdump.

This worked in my test environment, and properly output a one-line
error message when necessary.

My questions:

1. Is this always desirable behavior? Are there cases where this new
feature would simply be a bother to an admin? Will the combination of
mailing and sending the error message send duplicate messages in the
common case of amdump running from cron, with cron configured to email
stderr/stdout to the admin?

2. The config name needs to be extracted from the config file, instead
of hardcoded, in lines like:
echo "$ERRMSG" | $MAILER -s "ERROR KDD AMANDA REPORT FOR `date +%B"
"%e&quot;, "%Y`&quot; "$MAILTO"

3. If MAILER is not set, then Amanda should continue to operate, but
simply not send mail.

4. "echo -e" is not portable. See e.g.,
http://bugs.hylafax.org//show_bug.cgi?id=724. Writing portable shell
is tough!

4. Although JLM or I can take care of this when the change gets
committed, it would be helpful if you could develop from the HEAD
version of amdump, which has a number of changes from the version
you're working with. The HEAD version should drop in fairly easily
over the version you're using, with the addition of
common-src/amanda-sh-lib.sh.

Dustin

--
Storage Software Engineer
http://www.zmanda.com

Recent Activity
Visit Your Group
Featured Y! Groups

and category pages.

There is something

for everyone.

Yahoo! Groups

Real Food Group

Share recipes

and favorite meals.

Cat Fanatics

on Yahoo! Groups

Find people who are

crazy about cats.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web
Yahoo! Groups
Change settings via the Web (Yahoo! ID required)
Change settings via email: amanda-hackers-normal@yahoogroups.com?subject=Email Delivery: Indiviual Email">Switch delivery to Individual | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | amanda-hackers-unsubscribe@yahoogroups.com?subject=Unsubscribe"> Unsubscribe
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )