This seems to work:

amplot /var/backups/campus/log/amdump.1

Running under the amanda user.

However, the issue now is the attempt to write the output to the X11 terminal:


gnuplot: unable to open display ''
gnuplot: X11 aborted.

Not sure what all that's about. So I'm doing a bit of hacking on the
gnuplot script to have it write the results out to a png file.

Chris
On Tue, Nov 6, 2018 at 12:29 PM Ned Danieley <ned.danie...@duke.edu> wrote:
>
> On Tue, Nov 06, 2018 at 11:50:57AM -0500, Chris Nighswonger wrote:
> > Digging around a bit, it appears that it might be a reference to a
> > file which is missing. From amplot.g, line 62 we see:
> >
> > # file title has the parameters that this program needs
> > load 'title'
> > plot    "run_queue" title "Run Queue" with lines,\
> >         "tape_queue" title "Tape Queue" with lines,\
> >         "finished"  title "Dumps Finished" with lines,\
> >         "bandw_free" title "Bandwidth Allocated" with lines, \
> >         "disk_alloc" title "%Disk Allocated" with lines, \
> >         "tape_wait" title "%Tape Wait" with lines,\
> >         "tape_idle" title "Taper Idle" with lines,\
> >         "dump_idle" title "Dumpers Idle" with lines
> >
> > Where is a developer when you need one? :-P
>
> looks like the awk script is supposed to generate 'title'. on my system, I
> have to run amplot as user 'amanda'. that means that I have to be in a
> directory where amanda has write permission, otherwise title can't be
> generated. my home directory doesn't work, but a temp dir that's chmod 777
> does.
>
> --
> Ned Danieley (ned.danie...@duke.edu)
> Department of Biomedical Engineering
> Box 90281, Duke University
> Durham, NC  27708   (919) 660-5111
>
> http://dilbert.com/strips/comic/2012-02-11/

Reply via email to