LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-15-2008, 10:50 PM   #1
satishap
LQ Newbie
 
Registered: Dec 2007
Posts: 10

Rep: Reputation: 0
How to make sure Squid is Running and doing it;'s job


Dear All
In RHEL 5.0 , I have installed DNS server and squid successfully.
Squid is also running fine. But is there any criteria by which one can make sure that squid is doing it's job i.e caching of pages.
also whenever I type following command
cat /var/log/squid/squid.out file, I got an error saying that
" FATAL : could not determine fully qualified hostname. Please set 'visible_hostname'. Though I have already set this option in /etc/squid/squid.conf say if FQDN is abc.xyz.com then I set as
visible_hostname abc.xyz.com

I also treid to put just hostname as abc but still same error pops up whenever I cat /var/log/squid/squid.out.

Please help me anyone I dought whether some configuration problem.
 
Old 02-17-2008, 08:39 PM   #2
danish5041
LQ Newbie
 
Registered: May 2004
Location: Pakistan
Distribution: RHEL 4.0
Posts: 8

Rep: Reputation: 0
Please edit your squid.conf file and set visible_hostname there.

# vi /etc/squid/squid.conf

and set

visible_hostname myhost

here 'myhost' is the machine name. You may get the machine nmae by

# hostname

you can ensure that squid is running by doing following things

# ps aux|grep squid

Output of above command must contain 3 or 4 squid child process listing. If above command returns nothing so its means squid is not running.

2nd Method

Open a terminal window and tail the squid access.log file

# tail -f /var/log/squid/access.log

or whatever location of access.log you set in squid.conf

and now open a browser window and try to access some websites and then watch terminal window. Your all internet activity must be shown in terminal window. If you are getting output from access.log file its means your squid is running.

I hope this will help

Regards,
Danish Usman
 
Old 04-24-2008, 08:10 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Just found this thread, & it reminded me that I have long suspected that squid is not doing its caching job on my perimeter firewall -- a SmoothWall Express 2.0 box.

This may be a foolish Q since I am moving to SmoothWall Express 3.0, but doesn't this look like squid is running, but not doing any caching:
Code:
# ps aux|grep squid
root       288  0.0  0.7  3604  984 ?        S     2007   0:00 /usr/local/squid/
squid      291  0.0  3.0  6104 3940 ?        S     2007   0:47 (squid) -D
squid      295  0.0  0.2  1284  268 ?        S     2007   0:00 (unlinkd)
squid      296  0.0  0.3  1976  388 ?        S     2007   0:01 diskd 297984 2979
root     17745  0.0  0.3  1424  444 ttyp0    S    07:54   0:00 grep squid

# ls -l /var/log/squid/
total 24
-rw-r--r--    1 squid    squid           0 Apr 20 04:02 access.log
-rw-r--r--    1 squid    squid           0 Apr 13 04:02 access.log.0
-rw-r--r--    1 squid    squid           0 Apr  6 04:02 access.log.1
-rw-r--r--    1 squid    squid           0 Mar 30 04:02 access.log.2
-rw-r--r--    1 squid    squid           0 Mar 23 04:02 access.log.3
-rw-r--r--    1 squid    squid           0 Mar 16 04:02 access.log.4
-rw-r--r--    1 squid    squid           0 Mar  9 04:02 access.log.5
-rw-r--r--    1 squid    squid           0 Mar  2 04:02 access.log.6
-rw-r--r--    1 squid    squid           0 Feb 24 04:02 access.log.7
-rw-r--r--    1 squid    squid           0 Feb 17 04:02 access.log.8
-rw-r--r--    1 squid    squid           0 Feb 10 04:02 access.log.9
-rw-r--r--    1 squid    squid         232 Apr 20 04:02 cache.log
-rw-r--r--    1 squid    squid           0 Apr 20 04:02 cache.log.0
-rw-r--r--    1 squid    squid           0 Apr 13 04:02 cache.log.1
-rw-r--r--    1 squid    squid         172 Apr 20 04:02 cache.log.1.gz
-rw-r--r--    1 squid    squid         171 Apr 13 04:02 cache.log.2.gz
-rw-r--r--    1 squid    squid         172 Apr  6 04:02 cache.log.3.gz
-rw-r--r--    1 squid    squid         174 Mar 30 04:02 cache.log.4.gz
-rw-r--r--    1 squid    squid         232 Nov  4 04:02 cache.log.9
 
  


Reply



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
Tedious job to detect http_access rule in squid suhas! Linux - Server 1 05-06-2007 12:54 AM
remote job running apiav Slackware 4 05-27-2004 08:54 AM
Where is make and why won't he do his job? giddyupman Slackware 4 05-09-2004 11:31 AM
Cron job not running? james_cwy Linux - Newbie 6 12-14-2003 08:24 PM
Cron Job Not Running pzorn Linux - General 4 10-02-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration