LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-29-2008, 11:43 AM   #1
bhowerton
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
SARG says that URL could not be retrieved because "Connection was Refused"


Hello,
I have a network of approx 100 pcs (with Microsoft Windows XP Pro and Server 2003).

I just setup a machine to be a network proxy. This machine is using CentOS 5, Squid, and SARG. It seems to be working perfectly. Network traffic is being logged.

The problem that I am having is that when I am sitting at my windows pc and go to the Internet Explorer browser to pull up the SARG reports, that are all in HTML,...there is an error being produced. This is the error:

ERROR
The requested URL could not be retrieved

---------------------------------------------------------------

While trying to retrieve the URL: http:// prox.lwp.net/sarg

The following error was encountered:

Connection to 127.0.0.1 Failed
The system returned:

(111) Connection refusedThe remote host or network may be down. Please try the request again.

Your cache administrator is root.

------------------------------------------------------------

Generated Mon, 29 Sep 2008 16:26:44 GMT by prox.lwp.net (squid/2.6.STABLE6)


I can use PuTTY to log into my proxy and I can use the eLinks or something like a DOS based Squid User Access Report. I need to be able to get these reports in HTML though.

Can someone please tell me why I am getting this error??? And what to do to get it to generate and show the HTML reports???

Thanks

Bobby
 
Old 09-29-2008, 12:18 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,642

Rep: Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574
Quote:
Originally Posted by bhowerton View Post
Hello,
I have a network of approx 100 pcs (with Microsoft Windows XP Pro and Server 2003).

I just setup a machine to be a network proxy. This machine is using CentOS 5, Squid, and SARG. It seems to be working perfectly. Network traffic is being logged.

The problem that I am having is that when I am sitting at my windows pc and go to the Internet Explorer browser to pull up the SARG reports, that are all in HTML,...there is an error being produced. This is the error:

I can use PuTTY to log into my proxy and I can use the eLinks or something like a DOS based Squid User Access Report. I need to be able to get these reports in HTML though.

Can someone please tell me why I am getting this error??? And what to do to get it to generate and show the HTML reports???
Well, the reports may be in HTML format, but does your Centos machine have Apache running on it, to serve up those pages? Are those pages in a directory that is readable by Apache? Does DNS return the right address for that name you entered in the browser?
 
Old 09-29-2008, 01:39 PM   #3
bhowerton
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
I'm not sure...I am new to Linux, but I will check on it....
Thanks for your help!
 
Old 09-29-2008, 03:34 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,642

Rep: Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574
Quote:
Originally Posted by bhowerton View Post
I'm not sure...I am new to Linux, but I will check on it....
Thanks for your help!
You're welcome, but we haven't helped yet.

If you've got the reports in HTML format as you've said, you're most of the way there. You should just then have to make sure apache is running on that box (LOTS of how-tos on how to do that), and make sure the directory(ies) your reports are in, can be accessed by Apache.
 
Old 10-01-2008, 08:41 AM   #5
bhowerton
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Ok....well...I think apache was installed, it just wasn't configured. After I configured apache and started the apache services. I went to the browser and typed in my servers ip address/sarg and it worked...perfectly.

I take my hat off and say thank you to you for your help!!!

Now I have another question:

Once I am in the User Report section, I see multiple entries like this:

ACCESSED SITE CONNECT BYTES %BYTES IN-CACHE-OUT ELAPSED TIME MILISEC %TIME
dmcom.espn.go.com 6 16.24M 9.09% 0.00% 100.00% 00:02:09 129.855 0.85%

what do each of these field tell me (I don't understand what their purpose is or how useful the information is):
CONNECT
BYTES
%BYTES
IN-CACHE-OUT
ELAPSED TIME
MILISEC
%TIME


and when I click the Date and Time Report I see this:
ACCESSED SITE DATE TIME
dmcom.espn.go.com 09/29/2008 12:10:11
dmcom.espn.go.com 09/29/2008 12:10:12
dmcom.espn.go.com 09/29/2008 12:10:18
dmcom.espn.go.com 10/01/2008 07:00:06
dmcom.espn.go.com 10/01/2008 07:00:12
dmcom.espn.go.com 10/01/2008 07:00:13

This initially appears to be self explanatory, but what about the time. Is the time in AM or PM??? Did this user visit this site multiple times on different dates???

Again thanks for the help!!!

Bobby
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
anybody familiar with this error "Xlib: connection to ":0.0" refused by server" ? rajnivanza Linux - Newbie 3 03-22-2009 05:10 PM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM
lp filename yields "cannot open connection to localhost - Connection refused" jjge Linux - General 3 12-28-2003 11:02 PM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration