diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-29 13:36:39 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-29 13:36:39 +0200 |
commit | 4ab769579b0aeafd81878ddb332b726c44dc2ffc (patch) | |
tree | 19bce950fe029dc5a322ac37f3810de2bfabe90f /bin | |
parent | d6136cf5bb98c3b52d54f9b0c9042a54169bfb5b (diff) | |
download | smokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.gz smokeping-4ab769579b0aeafd81878ddb332b726c44dc2ffc.tar.xz |
improve webserver docu and sample script
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/smokeping_cgi | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/bin/smokeping_cgi b/bin/smokeping_cgi index bedc6ff..6af8bf8 100755 --- a/bin/smokeping_cgi +++ b/bin/smokeping_cgi @@ -14,7 +14,7 @@ $SIG{CHLD} = 'IGNORE'; use CGI::Carp qw(fatalsToBrowser); -use Smokeping 2.005000; +use Smokeping; use CGI::Fast; @@ -37,7 +37,7 @@ as they are required by people looking at the pages. =head1 DESCRIPTION -To get B<smokeping.cgi> going, you need a webserver which allows you to run +To get B<smokeping_cgi> going, you need a webserver which allows you to run CGI or better FastCGI scripts. The system must be setup so that the cgi process is allowed to write to the image caching area as defined in the config file. @@ -51,13 +51,11 @@ Please refer to the installation document for detailed setup instructions. =head1 SETUP -When installing SmokePing, I recomend to place a little shell wrapper -into your htdocs directory, to launch the actual smokeping.cgi process: - - #!/bin/sh - # maybe add some extra perl search path - # export PERL5LIB=/opt/rrdtool/lib/perl - exec /opt/smokeping/bin/smokeping.cgi /opt/smokeping/etc/config +There is a sample F<htdocs> directory in your smokeping installation root. +Copy its content to the place where your webserver expects its files. +There are also two sample cgi scripts showing how to launch the +smokeping cgi in your website. The only difference is the file extension. +Adjust the paths in the script and you should be ready to go. =head1 COPYRIGHT |