a7fe341967
PR: 37211 Submitted by: maintainer
25 lines
842 B
Plaintext
25 lines
842 B
Plaintext
--- support/log_server_status.in.orig Thu Mar 14 05:48:06 2002
|
|
+++ support/log_server_status.in Sun Apr 7 08:47:53 2002
|
|
@@ -63,10 +63,10 @@
|
|
#
|
|
require 'sys/socket.ph';
|
|
|
|
-$wherelog = "/var/log/graph/"; # Logs will be like "/var/log/graph/19960312"
|
|
+$wherelog = "@logfiledir@/httpd-status-"; # Logs will be like "/var/log/httpd-status-19960312.log"
|
|
$server = "localhost"; # Name of server, could be "www.foo.com"
|
|
$port = "80"; # Port on server
|
|
-$request = "/status/?auto"; # Request to send
|
|
+$request = "/status-status/?auto"; # Request to send
|
|
|
|
sub tcp_connect
|
|
{
|
|
@@ -96,7 +96,7 @@
|
|
chomp($date);
|
|
($day,$time)=split(/:/,$date);
|
|
$res=&tcp_connect($server,$port);
|
|
- open(OUT,">>$wherelog$day");
|
|
+ open(OUT,">>$wherelog$day.log");
|
|
if ($res) {
|
|
print OUT "$time:-1:-1:-1:-1:$res\n";
|
|
exit 1;
|