Re: amreport issue

Jean-Louis Martineau <[email protected]>
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
The problem is not in amreport, but in your log file

Add a line like:
   INFO amflush amflush pid 6670
at the beginning of the log file.

You should run a real amflush, then looks at the log at fix your scripts 
to be similar.

Why you are not using amflush?

Jean-Louis

On 19/05/17 03:24 PM, Orion Poplawski wrote:
> It appears that amreport isn't detect my custom amflush logs as 
> amflush. This
> appears to be that $self->{flags}{normal_run} is never initialized and in:
>
> if (!$self->get_flag("normal_run")) {
> if ( ( defined $self->get_program_info("amflush") )
> && ( scalar %{ $self->get_program_info("amflush") } ) ) {
> debug("detected an amflush run");
>
> the conditional fails so it never checks for amflush. If I add:
>
> $self->{flags}{normal_run} = 0;
>
> to the initialization before reading the log then it appears to detect an
> amflush report.
>
> -- 
> Orion Poplawski
> Technical Manager 720-772-5637
> NWRA, Boulder/CoRA Office FAX: 303-415-9702
> 3380 Mitchell Lane [email protected]
> Boulder, CO 80301 http://www.nwra.com 
> <http://www.nwra.com>
This message is the property of CARBONITE, INC. and may contain confidential or privileged information.
If this message has been delivered to you by mistake, then do not copy or deliver this message to anyone.  Instead, destroy it and notify me by reply e-mail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.