Im in the process of designing a website for my company which does the following
1) Daily execution a perl script. The perl script's output is diverted to a .html file.
2) The .html file generated from 1) sets up a centralised webpage showing options as radio buttons (the radio buttons are given the same name to show grouping)
3) When clicking on one of the radio buttons, a .php script is executed which should show a webpage with a simple message in it.
The html code for the part with radio buttons is
And the .php script code (which is a separate .php file) is
I have executed this under the main html directory of my machine, so Im not sure what I could be doing wrong.
I have a webpage that is in HTML and PHP. In PHP I have tried using exec, system, shell_exec and passthru functions to call an Expect Script file (temp.exp). This Expect file spawns a telnet session that uses "expect/send" commands to retrieve information from an environmental unit (not a normal... (0 Replies)
Hello,
I was trying to run a shell script when I click on webpage link. My webpage is hosted on Sun One web server.
This is something I was looking,
Chris Johnson's Test Bed
I already have my shell script and it works fine when I run it from the command line. Can somebody tell me what are... (3 Replies)
Hi all,
What I was looking for before was a multi-user password manager, web-based! The offer of free or cheap tools of this kind is very pover. Or they are too complex (or too expensive)
I'm not a web programmer but I now decided to set up a (php) website with login and based on this login... (1 Reply)
I have a shell script which I made with the help of this forum
#!/bin/sh
RuleNum=$1
cat bw_rules | sed 's/^.*-x //' | awk -v var=$RuleNum '$1==var {for(i=1;i<=NF;i++) {if($i=="-bwout") print $(i+3),$(i+1)}}'
Basically I have a pages after pages of bandwidth rules and the script gives... (0 Replies)
I am running Ubuntu Lucid, I installed Subversion (svn 1.1.6) and apache2.2.14, it is working fine I could commit repository.
The problem is, on the web page it is not showing the Author name and modifies date.
What am I missing? What am I doing wrong?
Can you help please? (0 Replies)
I apologize if this is in the incorrect section, I'm not quite sure which section it should go in.
Anyways...
I've got a script that I'd like to be able to start with a webpage, something that just has a button that says "Start this Bot", which will start the bot and put it in the background.... (4 Replies)
Hello,
i have page domain.com/form.php
the form fields on form.php are named:
name=ipaddress
name=port
and submit button is named: submit
i want to ask how the linux command will look like to submit the form filled with:
ipaddress: 127.0.0.1
port: 80
I tried various curl and... (5 Replies)
Hello ,
I am trying to execute a small shell script from a PHP Webpage.
Below is the shell script : 1.sh
$ cat /home/oracle/rahul/1.sh
#!/bin/ksh
echo "`date` : Report generation in progress" > /home/oracle/rahul/report.txt
echo "Run successfully script";
Below is the PHP... (1 Reply)
Hello,
Scenario: Send sms from putty and display it on webpage.
I have rented an short message service from a company and set callback url to my vps. PHP is installed in my vps .
my mobile phone is: ********85**
receipent mobile phone is: 49*********
callback url is redirected to... (0 Replies)
so i have a bit of a unique situation.
i have an encrypted index.php file that that can't be run the normal way that a web browser would run it. if it is run the normal way, the php script will show only gibberish on the web browser, instead of the actual php code.
when run from the command... (8 Replies)
Discussion started by: SkySmart
8 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)