PDA

View Full Version : HTML output module for amreport



UnitedWallabies
September 12th, 2014, 10:35 AM
I copied over the human.pm module to html.pm and am modifying it to generate the reports in HTML. These would look better in modern mail-agents. Here is an example -- output generated from the last night's run on one of my servers:

http://aldan.algebra.com/~mi/tmp/amreport2.html

I'm trying to make html output an option -- the resulting module will be able to generate either text/plain or text/html. I don't like Perl, however, and can't help but continue the existing style of human.pm.

Would there be somebody willing to take this task over -- with the goal of making it part of future Amanda-releases? Thank you!

mithunrajvk
April 1st, 2018, 09:48 AM
Please get in touch with Zmanda Support ([email protected])

martineau
April 2nd, 2018, 07:53 AM
Your module should 'use base qw( Amanda::Report::human );' and modify only some methods.
Look at the json.pm and json_raw.pm module in 3.5

3.5 have a report-format setting it amanda.conf to allow the use of nay report format.
see http://wiki.zmanda.com/man/3.5.1/amanda.conf.5.html

martineau
April 2nd, 2018, 07:54 AM
Your module should 'use base qw( Amanda::Report::human );' and modify only some methods.
Look at the json.pm and json_raw.pm module in 3.5

3.5 have a report-format setting it amanda.conf to allow the use of nay report format.
see http://wiki.zmanda.com/man/3.5.1/amanda.conf.5.html