10-30-2008
Well I guess you need to find out the relative strengths & weaknesses of these technologies and match them to your needs accordingly... I'm not a web expert, but I know we have done this type of thing with perl+cgi+html. Personally I am using shell scripts rather than Perl; but this is purely so that I can improve my native scripting skills. From what I understand Perl is the shtuff for text-processing and provides good abstraction from some tricky scripting stuff, so you might wanna go Perl rather than shell scripts.
Also, Perl is definitely worth learning if you will be doing this kind of thing at all in the future. And remember, most people don't know where to start - just take baby steps until it either comes together or falls apart (in which case you may need to try some different tech; or post your problem here).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
my box is FreeBSD4.3 and I use Perl 5.0005_03.
Here is the CGI script.
test.cgi
......
if ($query->action eq 'detail') {
......
print $query->hidden('action', 'modify');
......
}
I found that the result of
test.cgi?action=detail
is not what I expected.
the script does not... (4 Replies)
Discussion started by: tonyt
4 Replies
2. UNIX for Dummies Questions & Answers
Can any body help me with apache and cgi
i'dont know how iconfigure apache to use cgi...
and when i try to start apachectl it says there is no file...
please help me...i have apache installed... (1 Reply)
Discussion started by: CreamHarry
1 Replies
3. Shell Programming and Scripting
I have been trying to get this for weeks now but maybe someone knows or has a snippet of code to display a collapsible tree view.
something like this:
+Yahoo!
-/site.html
-/site2.html
+Google
-/site.php
-/site2.php (1 Reply)
Discussion started by: Dabheeruz
1 Replies
4. Shell Programming and Scripting
Hi all
I’m looking for a perl equivalent to this command string
I need to imbed this in a existing perl script
cat file1 | gawk -F"|" '{print $1","$2,",",$3,",",$11 >> "new-file"}'
Thank you (4 Replies)
Discussion started by: Ex-Capsa
4 Replies
5. Web Development
Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect.
Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is
redirected to welcome page.
My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies
6. Shell Programming and Scripting
Hi,
Am unfamiliar with using CGI modules in Perl.
Though i checked in few sites about CGI , i dint get a clear idea.
Can anyone please explain me the purpose of these statements, it ll be very helpful to me
#!/usr/bin/perl
use CGI qw/:standard/;
use Storable;
use Data::Dumper;
my... (1 Reply)
Discussion started by: irudayaraj
1 Replies
7. Shell Programming and Scripting
Hi team,
I have a typical problem with cgi pages in apache webserver in WINDOWS
I am able to execute(display) the pages that are saved in cgi-bin folder.
But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder.
Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies
8. Shell Programming and Scripting
Hi All,
I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet.
I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet.
print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies
9. Shell Programming and Scripting
Hi Team,
I am trying to connect to database(succeeded ) and print the records on the browser using while loop. But the elements of array are not displayed instead while loop is displayed directly. Instead of the below I can embed html statements in print but I am looking for the below style as I... (1 Reply)
Discussion started by: scriptscript
1 Replies
10. OS X (Apple)
I am trying to get my MacBook Pro with 10.8 Mt Lion set up to run Perl CGI scripts.
Having a problem. I can start Apache Web Server with no problems.
Why do I put the static and dynamic scripts? I which directory?
I have looked at this article:... (3 Replies)
Discussion started by: djehresmann
3 Replies
LEARN ABOUT SUSE
mrtg-rrd
MRTG-RRD(1) mrtg MRTG-RRD(1)
NAME
mrtg-rrd - How to use RRDtool with MRTG
SYNOPSIS
After using MRTG for some time you may find some limitations, mostly in the areas of performance and graphing flexibility. These are
exactly the areas addressed by RRDtool. To learn more about RRDtool check out its website on
http://oss.oetiker.ch/rrdtool
RRDTOOL INTEGRATION
When using mrtg with RRDtool you are replacing rateup with the RRDtool perl module RRDs.pm. To enable RRDtool support in mrtg you have to
add the line
LogFormat: rrdtool
to your mrtg config file.
MRTG needs access to both the RRDtool perl module RRDs.pm and to the rrdtool executable.
If these two items are not installed in locations where perl can find them on its own, then you can use the following two parameters to
supply the appropriate directories.
For the location of the rrdtool executable you put
PathAdd: /usr/local/rrdtool/bin/
or
PathAdd: c:
rdtoolin
For the location of the perl module it would be:
LibAdd: /usr/local/rrdtool/lib/perl/
or
LibAdd: c:
rdtoolinlibperl
When you have made this modification to the configuration file, several things will happen when you run mrtg again with the new config
file:
1. mrtg will take all your old ".log" files and convert them to ".rrd" format. (The ".log" files don't get touched in the process, so if
things don't work out they are still there.)
2. mrtg will use rrdtool to update its databases. These will have a new format called rrd which is totally different than the native log
format of the classic mrtg.
3. mrtg will not create any webpages of graphs anymore. It will only query the routers for traffic information and update its rrd data-
bases.
The advantage of whole thing is that the mrtg will become much faster. Expect the runtime to drop to 20% of the previous value. (I would
like to get some feedback on this from folks with large installations.)
Mind you, though, while the logging process of RRDtool is very fast, you are also gaining some time by neither creating graphs nor updating
webpages. The idea behind this is that it is more efficient to create graphs and webpages on demand by using a cgi script.
At the moment there is no official script to do this, but two contributers have created such scripts:
One4All aka 14all.cgi
This was the first program to take over the webpage creation and graphing task. It has been developed by Rainer Bawidamann rainer.baw-
idamann@web.de. You can find a copy on Rainers website: http://my14all.sourceforge.net/ The program comes with its own documentation
routers.cgi, servers.cgi and generic.cgi
These are other cgi frontends to mrtg running with rrdtool. The main difference between this and 14all is that the web pages it creates
are much more stylish than the ones from mrtg. These tools have been written by Steve Shipway steve@steveshipway.org. You can find a
copy in http://www.steveshipway.org/software/ The programs come with their own installation instructions.
mrtg-rrd
The mrtg-rrd script is a CGI/FastCGI application by Jan "Yenya" Kasprzak for displaying MRTG graphs from data in the RRDtool format. It
is an intended replacement for the 14all.cgi script. It can make your monitoring system faster because MRTG does not have to generate
all the PNG files with graphs every 5 minutes or so. Instead of this the graphs are generated on-demand when the user wants to see
them. http://www.fi.muni.cz/~kas/mrtg-rrd/
Paul C. Williamson has written a more in-depth page on how the whole process works, including some performance figures. You can find his
page on http://www.geocities.com/paulcwilliamson/mrtg/rateup2rrd.html
FUTURE
Just as a side note: MRTG-3 will be based entirely on rrdtool technology. But don't wait for it ... get going now!
AUTHOR
Tobias Oetiker <tobi@oetiker.ch>
2.16.2 2008-05-16 MRTG-RRD(1)