xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

I'm studing Template Toolkit and intend to build a website for monitoring system running. But I found serveral points stuck me When I get to start

1. Html code examples in Perl template toolkit are written manually. Could anybody recommand some good free Web IDE(WYSIWYG)?

2. As a SA, I are surely not familiar with Web design, how can I layout webpage? how set appropriate fonts, color and where image pictures is? Could anybody provide some free web templates so that I just modify on it but not create it from scratch.

3. Before I do some new matter in perl, I will always be dazzling about so many modules in CPAN. ;)
CGI::Application, Catalyst, Mason.... which one is the best for me? the website I will do is to monitor about 20 servers including database, app servers, and will be browsed by serveral guys(less than 10), but it still need to connect to database because I intend to requiry some system view of Oracle directly and retrieve database information running. Last, I hope it has more flexbility to extend for future.

Could you please give the insights to enlight me? Thanks in advance!


I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re: newbie questions for web in perl[OT]
by ww (Archbishop) on Oct 07, 2008 at 07:14 UTC
    In reverse order....

    3. From previous posts, we know you have some experience with perl. From your description here (and the implied emphasis on points 1 and 2), you can probably do very nicely with plain CGI or maybe CGI::Application, without confronting the overhead of mastering Catalyst, Mason or similar.

    I say this because your light user-load and the (modest?) demands for monitoring a small group of servers seem to invite simplicity. (And, much as I hate to say it, this may be a case where javascript could be appropriate.)

    2. Layout:

    • Keep it simple; provide clear distinction between the reports on the various servers, and, since you're not in a situation requiring whiz-bang presentation to keep bored browsers intrigued, buying things or such like, don't worry much beyond getting another set of eyes on what you come up with, just to make sure others can easily find what they require on your page(s).
    • As to fonts, read-able is good, and common-place is accessible.
    • For color, reserve red (or a culturally appropriate alternative) for critical warnings or failures and maintain good contrast between background-color (if any) and text.
    • As to pictures, I don't see where they fit in, unless you anticipate using graphs for complex or time-spanning data, in which case, position them with other data displayed for that server.

    1) My prejudice: There is no such thing as a good WYSIWYG .html editor because even the latest versions of the gold-standard commercial offerings produce invalid or unnecessarily verbose code.

    That said, .html (esp html written to the 4.01 strict or transitional standard) is so simple and close to natural language English that it; a mere smattering of CSS (yes, I'm adding a learning requirement here); a few hours with a recent-and-decent tutorial; and a good text editor (perhaps with syntax highlighting) should get you well on the way to proficiency.

    FWIW, I found that a readiness to use an html validator (http://validator.w3.org/ or for Windows CSE HTML Validator or derivatives available for Firefox or any of a number of good nix-ish counterparts will speed your learning and improve your results.

    w3c also offers a CSS validator at http://jigsaw.w3.org/css-validator/. As long as you don't get hung up on the kind of nitpicking concerns upon which too many designers of public/commercial sites tend to focus, a small amount of CSS will take you a long way.

Re: newbie questions for web in perl[OT]
by svenXY (Deacon) on Oct 07, 2008 at 06:47 UTC
    Hi,
    not a Perl solution, but why reinvent the wheel? Nagios is easily set up, monitors more things than you can think of, special requirements in monitoring can be taken care of by own plugins - which can of course be developed with Perl - and there is a wide variety of CPAN modules on Nagios.
    Regards,
    svenXY
Re: newbie questions for web in perl[OT]
by sunshine_august (Scribe) on Oct 07, 2008 at 07:45 UTC
    I am doing a similar project, except that I need to monitor thousands of boxes.
    I use HTML::Template to generate the html page I need, and It is very convinent to generate simple html page. As a web interface of the monitor system, the page should be simple.