LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 03-16-2011, 06:59 AM   #1
Felipe
Member
 
Registered: Oct 2006
Posts: 248

Rep: Reputation: 26
How can configure cachemgr.cgi for monitoring squid?


Hallo:

I've a problem with squid and I'm trying to configure cachemgr.cgi to monitor it.

I access with http://server/cgi-bin/cachemgr.cgi

a webpage is displayed to enter
Cache Server:
Cache Host:
Cache Port:
Manager name:
Password:

I enter the cache-server, host, port and password and a page with many options is displayed (Manager name left empty, don't know what to put).

But pressing any option, an authentication error is displayed.

What I try:
- To allow full access to cache mgr from a IP (I'll restrict it).
- Control all my squid-cache form a single cachemgr.cgi.

What I've configured:
- cachemgr.conf
server.domain:1081

- squid.conf
http_port 1081
....
acl manager proto cache_object
http_access allow manager (allow from all, restrict later).
cachemgr_passwd my_sec_pass all
....

From command line works:
squidclient -p 1081 mgr:info@my_sec_pass

but not from web (options displayed, but error accessing any of them).
Ex: Pressing an option, cache.log displays error:
The request GET cache_object://server.domain/offline_toggle is ALLOWED, because it matched 'manager'
CACHEMGR: <unknown>@10.22.234.23: password needed for 'offline_toggle'


Any suggestion?

Thanks

Last edited by Felipe; 03-16-2011 at 07:01 AM.
 
Old 03-16-2011, 07:24 AM   #2
Felipe
Member
 
Registered: Oct 2006
Posts: 248

Original Poster
Rep: Reputation: 26
Changing from:
cachemgr_passwd my_sec_pass all
to
cachemgr_passwd my_sec_pass

allows to access all options except

Current Squid Configuration (hidden).
Shut Down the Squid Process (hidden).
Toggle offline_mode setting (hidden).

How can enable this options?

Thanks:
 
  


Reply

Tags
squid


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squid monitoring 4ajaysingh Linux - Networking 2 01-30-2007 03:16 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM
Monitoring squid gubak Linux - Networking 2 08-19-2004 07:53 AM
Squid & cgi-bin ? .. Prob. collen Linux - General 0 04-01-2004 08:25 AM
Does Squid offer such CGI? captain Linux - Networking 1 04-14-2001 05:17 PM


All times are GMT -5. The time now is 05:48 AM.

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